/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import core.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import util.JCalendar;
import util.JTableUtil;
import util.PopUpListener;
import util.PopUpListener_WizytySwojlekarz;
import util.PopUpListener_WizytyDomowe;
import util.PopUpListener_WszyscyLekarze;
import util.PopUpListener_Badania_WolneTerminy;
import util.PopUpListener_BadanieRTG;
import util.PopUpListener_BadanieUSG;
import util.PopUpListener_Szczepionki;
/**
 *
 * @author Kuchcik
 */
public class Menu extends javax.swing.JFrame {

    private static JFrame LoginFrame;
    private static User user;
    private JCalendar calendar;
    private JCalendar calendar_wizytydomowe;
    private JCalendar calendar_swojlekarz;
    private JCalendar calendar_wszyscylekarze;
    private JCalendar calendar_badania_wolneterminy;
    private JCalendar calendar_badaniertg;
    private JCalendar calendar_badanieusg;
    private JCalendar calendar_szczepionki;
    private boolean today;
    private Users usersT = new Users(this);
    private DateFormat df = new SimpleDateFormat("dd-MM-yyyy");
    private static boolean iscIsActiveCheckedOnAdminUser = false;
    private static boolean iscAddUserOnAdminUser = false;
    private static JTable UserTableOnAdminUser;
    private static JTable Stat1;
    private static JTable Stat2;
    private static JTable Stat3;
    private static JTable Stat4;
    private static JTable Stat5;
    private static JTable Stat6;
    private static JTable Stat7;
    private static JTable Stat8;
    private static JTable Stat9;
    private static JTable Stat10;
    private static JTable MedicinesTableOnAdminMedicines;
    private static JTable AccessoriesTableOnAdminAccessories;
    private static JTable OfficesTableOnAdminOffices;
    private static JTable VaccineTableOnAdminVaccine;
    private static JTable ProducersTableOnAdminProducers;
    private static JTable RecipesTableOnAdminRecipes;
    private static JTable VisitTableOnPersonHistory;
    private static JTable RejestracjaRecznaWizytyModel;
    private static JTable RejestracjaRecznaWizytyModel1;
    private static JTable RejestracjaRecznaWizytyModel2;
    private static JTable RecipesListOnPersonHistory;
    private static JTable NadchodzaceTerminy_1;
    private static JTable NadchodzaceTerminy_2;
    private static JTable NadchodzaceTerminy_3;
    private static JTable NadchodzaceTerminy_4;
    private static JTable NadchodzaceTerminy_5;
    private static JTable NadchodzaceTerminy_6;
    private static JTable WynikiBadanMorfologia;
    private static JTable WynikiBadanMocz;
    private static JTable WynikiBadanLipidogram;    
    private static JTable WynikiBadanMorfologiaAdmin;
    private static JTable WynikiBadanMoczAdmin;
    private static JTable WynikiBadanLipidogramAdmin; 
    private static JTable RejestracjaWizyty;
    private static JTable RejestracjaWizyty1;
    private static JTable RejestracjaWizyty2;
    private ListSelectionModel listSelectionModel;

    
    /**
     * Creates new form Menu
     */
    public Menu(JFrame LoginFrame, User user) {
        initComponents();
        Menu.LoginFrame = LoginFrame;
        Menu.user = user;
        calendar = null;
        this.lLoginName.setText(user.getFirstName() + " " + user.getLastName());
    }

    public void setLockPanels(int status) {
        switch (status) {
            case 1: {
                AuthorizationTabbedPane.removeTabAt(0);
                AuthorizationTabbedPane.removeTabAt(1);
                AuthorizationTabbedPane.removeTabAt(1);
                break;
            }
            case 2: {
                AuthorizationTabbedPane.removeTabAt(1);
                AuthorizationTabbedPane.removeTabAt(1);
                AuthorizationTabbedPane.removeTabAt(1);
                break;
            }
            case 3:{
                AuthorizationTabbedPane.removeTabAt(0);
                AuthorizationTabbedPane.removeTabAt(0);
                AuthorizationTabbedPane.removeTabAt(0);
                break;
            }
            case 4:{
                AuthorizationTabbedPane.removeTabAt(0);
                AuthorizationTabbedPane.removeTabAt(0);
                AuthorizationTabbedPane.removeTabAt(1);
                break;
            }
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        AuthorizationTabbedPane = new javax.swing.JTabbedPane();
        MedicPanel = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel52 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        scPacjenci = new javax.swing.JScrollPane();
        jButton5 = new javax.swing.JButton();
        pCalendar = new javax.swing.JPanel();
        scCalendar = new javax.swing.JScrollPane();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        date = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        scTerms = new javax.swing.JScrollPane();
        AdminPanel = new javax.swing.JPanel();
        AdminTabbedPane = new javax.swing.JTabbedPane();
        UsersPanel = new javax.swing.JPanel();
        bAllUsers = new javax.swing.JButton();
        spUsersTable = new javax.swing.JScrollPane();
        lSearchTitle = new javax.swing.JLabel();
        lFirstName = new javax.swing.JLabel();
        tFirstNameSearch = new javax.swing.JTextField();
        lLastName = new javax.swing.JLabel();
        tLastNameSearch = new javax.swing.JTextField();
        lAuthorization = new javax.swing.JLabel();
        lEMail = new javax.swing.JLabel();
        tEmailSearch = new javax.swing.JTextField();
        cIsActiveSearch = new javax.swing.JCheckBox();
        bSearch = new javax.swing.JButton();
        DeleteUser = new javax.swing.JButton();
        lAddTitle = new javax.swing.JLabel();
        bEdit = new javax.swing.JButton();
        lLoginAdd = new javax.swing.JLabel();
        lPasswordAdd = new javax.swing.JLabel();
        tLoginAdd = new javax.swing.JTextField();
        tPasswordAdd = new javax.swing.JTextField();
        lAuthotizationAdd = new javax.swing.JLabel();
        lFirstNameAdd = new javax.swing.JLabel();
        lLastNameAdd = new javax.swing.JLabel();
        lEMailAdd = new javax.swing.JLabel();
        tFirstNameAdd = new javax.swing.JTextField();
        tLastNameAdd = new javax.swing.JTextField();
        tEMailAdd = new javax.swing.JTextField();
        cIsActiveAdd = new javax.swing.JCheckBox();
        bAdd = new javax.swing.JButton();
        cbAuth = new javax.swing.JComboBox();
        PacjentPanel = new javax.swing.JPanel();
        lPesel = new javax.swing.JLabel();
        tPesel = new javax.swing.JTextField();
        lAdress = new javax.swing.JLabel();
        tAdress = new javax.swing.JTextField();
        lNrU = new javax.swing.JLabel();
        tNrU = new javax.swing.JTextField();
        lDoc = new javax.swing.JLabel();
        cbDocPat = new javax.swing.JComboBox();
        DoktorPanel = new javax.swing.JPanel();
        lSpec = new javax.swing.JLabel();
        cbSpec = new javax.swing.JComboBox();
        lNrLic = new javax.swing.JLabel();
        tNrLic = new javax.swing.JTextField();
        cbAuth1 = new javax.swing.JComboBox();
        CheckupPanel = new javax.swing.JPanel();
        PacjentPanel_6 = new javax.swing.JTabbedPane();
        UsersPanel26 = new javax.swing.JPanel();
        date_badaniertg2 = new javax.swing.JLabel();
        jLabel151 = new javax.swing.JLabel();
        jLabel153 = new javax.swing.JLabel();
        jLabel154 = new javax.swing.JLabel();
        jLabel155 = new javax.swing.JLabel();
        rejestracja_wizyta_nazwisko = new javax.swing.JTextField();
        rejestracja_wizyta_pesel = new javax.swing.JTextField();
        rejestracja_wizyta_ubezp = new javax.swing.JTextField();
        rejestracja_wizyta_pacjent_list = new javax.swing.JScrollPane();
        jLabel156 = new javax.swing.JLabel();
        rejestracja_radio1 = new javax.swing.JRadioButton();
        rejestracja_radio2 = new javax.swing.JRadioButton();
        rejestracja_doctor_list = new javax.swing.JComboBox();
        rejestracja_wizyta_b1 = new javax.swing.JButton();
        rejestracja_wizyta_b2 = new javax.swing.JButton();
        rejestracja_wizyta_b3 = new javax.swing.JButton();
        rejestracja_wizyta_ball = new javax.swing.JButton();
        otworz_kalendarz_rejestracji = new javax.swing.JButton();
        pomoc_id_pacjenta = new javax.swing.JLabel();
        UsersPanel27 = new javax.swing.JPanel();
        date_badanieusg2 = new javax.swing.JLabel();
        jLabel152 = new javax.swing.JLabel();
        jLabel157 = new javax.swing.JLabel();
        jLabel158 = new javax.swing.JLabel();
        jLabel159 = new javax.swing.JLabel();
        rejestracja_wizyta_nazwisko1 = new javax.swing.JTextField();
        rejestracja_wizyta_pesel1 = new javax.swing.JTextField();
        rejestracja_wizyta_ubezp1 = new javax.swing.JTextField();
        rejestracja_wizyta_b4 = new javax.swing.JButton();
        rejestracja_wizyta_b5 = new javax.swing.JButton();
        rejestracja_wizyta_b6 = new javax.swing.JButton();
        rejestracja_wizyta_pacjent_list1 = new javax.swing.JScrollPane();
        jButton7 = new javax.swing.JButton();
        rejestracja_wizyta_pacjent_list2 = new javax.swing.JScrollPane();
        jLabel160 = new javax.swing.JLabel();
        jLabel161 = new javax.swing.JLabel();
        jLabel162 = new javax.swing.JLabel();
        jLabel163 = new javax.swing.JLabel();
        CheckupPanel2 = new javax.swing.JPanel();
        PacjentPanel_8 = new javax.swing.JTabbedPane();
        UsersPanel30 = new javax.swing.JPanel();
        date_badanieusg3 = new javax.swing.JLabel();
        jLabel188 = new javax.swing.JLabel();
        jLabel189 = new javax.swing.JLabel();
        jLabel190 = new javax.swing.JLabel();
        mo1 = new javax.swing.JTextField();
        mo2 = new javax.swing.JTextField();
        mo3 = new javax.swing.JTextField();
        mo4 = new javax.swing.JTextField();
        mo5 = new javax.swing.JTextField();
        mo6 = new javax.swing.JTextField();
        mo7 = new javax.swing.JTextField();
        mo8 = new javax.swing.JTextField();
        mo9 = new javax.swing.JTextField();
        mo10 = new javax.swing.JTextField();
        mo11 = new javax.swing.JTextField();
        mo12 = new javax.swing.JTextField();
        mo13 = new javax.swing.JTextField();
        mo14 = new javax.swing.JTextField();
        jLabel165 = new javax.swing.JLabel();
        jLabel166 = new javax.swing.JLabel();
        jLabel167 = new javax.swing.JLabel();
        jLabel168 = new javax.swing.JLabel();
        jLabel169 = new javax.swing.JLabel();
        jLabel170 = new javax.swing.JLabel();
        jLabel171 = new javax.swing.JLabel();
        jLabel172 = new javax.swing.JLabel();
        jLabel173 = new javax.swing.JLabel();
        jLabel174 = new javax.swing.JLabel();
        jLabel175 = new javax.swing.JLabel();
        jLabel176 = new javax.swing.JLabel();
        jLabel177 = new javax.swing.JLabel();
        jLabel178 = new javax.swing.JLabel();
        lista_badaniamoczu_bezwpisu = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj5 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jLabel227 = new javax.swing.JLabel();
        jLabel228 = new javax.swing.JLabel();
        jLabel229 = new javax.swing.JLabel();
        jLabel230 = new javax.swing.JLabel();
        jLabel231 = new javax.swing.JLabel();
        jLabel232 = new javax.swing.JLabel();
        UsersPanel31 = new javax.swing.JPanel();
        date_badanieusg4 = new javax.swing.JLabel();
        jLabel196 = new javax.swing.JLabel();
        jLabel197 = new javax.swing.JLabel();
        jLabel198 = new javax.swing.JLabel();
        li1 = new javax.swing.JTextField();
        li2 = new javax.swing.JTextField();
        li3 = new javax.swing.JTextField();
        li4 = new javax.swing.JTextField();
        li5 = new javax.swing.JTextField();
        jLabel208 = new javax.swing.JLabel();
        jLabel209 = new javax.swing.JLabel();
        jLabel210 = new javax.swing.JLabel();
        jLabel211 = new javax.swing.JLabel();
        jLabel212 = new javax.swing.JLabel();
        lista_badaniamoczu_bezwpisu1 = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj6 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jLabel242 = new javax.swing.JLabel();
        jLabel243 = new javax.swing.JLabel();
        jLabel244 = new javax.swing.JLabel();
        jLabel245 = new javax.swing.JLabel();
        jLabel246 = new javax.swing.JLabel();
        jLabel247 = new javax.swing.JLabel();
        jLabel164 = new javax.swing.JLabel();
        jLabel179 = new javax.swing.JLabel();
        jLabel180 = new javax.swing.JLabel();
        UsersPanel33 = new javax.swing.JPanel();
        date_badanieusg6 = new javax.swing.JLabel();
        jLabel213 = new javax.swing.JLabel();
        jLabel214 = new javax.swing.JLabel();
        jLabel215 = new javax.swing.JLabel();
        kr1 = new javax.swing.JTextField();
        kr2 = new javax.swing.JTextField();
        kr3 = new javax.swing.JTextField();
        kr4 = new javax.swing.JTextField();
        kr5 = new javax.swing.JTextField();
        kr6 = new javax.swing.JTextField();
        kr7 = new javax.swing.JTextField();
        kr8 = new javax.swing.JTextField();
        kr9 = new javax.swing.JTextField();
        kr10 = new javax.swing.JTextField();
        kr11 = new javax.swing.JTextField();
        kr12 = new javax.swing.JTextField();
        kr13 = new javax.swing.JTextField();
        kr14 = new javax.swing.JTextField();
        jLabel216 = new javax.swing.JLabel();
        jLabel217 = new javax.swing.JLabel();
        jLabel218 = new javax.swing.JLabel();
        jLabel219 = new javax.swing.JLabel();
        jLabel220 = new javax.swing.JLabel();
        jLabel221 = new javax.swing.JLabel();
        jLabel222 = new javax.swing.JLabel();
        jLabel223 = new javax.swing.JLabel();
        jLabel224 = new javax.swing.JLabel();
        jLabel225 = new javax.swing.JLabel();
        jLabel226 = new javax.swing.JLabel();
        jLabel248 = new javax.swing.JLabel();
        jLabel249 = new javax.swing.JLabel();
        jLabel250 = new javax.swing.JLabel();
        lista_badaniamoczu_bezwpisu3 = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj10 = new javax.swing.JButton();
        jButton13 = new javax.swing.JButton();
        jLabel251 = new javax.swing.JLabel();
        jLabel252 = new javax.swing.JLabel();
        jLabel253 = new javax.swing.JLabel();
        jLabel254 = new javax.swing.JLabel();
        jLabel255 = new javax.swing.JLabel();
        jLabel256 = new javax.swing.JLabel();
        kr15 = new javax.swing.JTextField();
        kr17 = new javax.swing.JTextField();
        kr18 = new javax.swing.JTextField();
        jLabel233 = new javax.swing.JLabel();
        jLabel257 = new javax.swing.JLabel();
        jLabel258 = new javax.swing.JLabel();
        jLabel259 = new javax.swing.JLabel();
        kr16 = new javax.swing.JTextField();
        jLabel181 = new javax.swing.JLabel();
        jLabel182 = new javax.swing.JLabel();
        jLabel183 = new javax.swing.JLabel();
        MedicinePanel = new javax.swing.JPanel();
        spDrugsProducers = new javax.swing.JScrollPane();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        tName = new javax.swing.JTextField();
        tPriceFrom = new javax.swing.JTextField();
        cbRef = new javax.swing.JComboBox();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        cbProducent = new javax.swing.JComboBox();
        jLabel7 = new javax.swing.JLabel();
        tPriceTo = new javax.swing.JTextField();
        bSearchDrug = new javax.swing.JButton();
        bAllDrugs = new javax.swing.JButton();
        bDeleteMedicine = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        tAddMedicineName = new javax.swing.JTextField();
        cbProducent1 = new javax.swing.JComboBox();
        tAddMedicinePrice = new javax.swing.JTextField();
        cbRef1 = new javax.swing.JComboBox();
        bAddMedicine = new javax.swing.JButton();
        AccessoriesPanel = new javax.swing.JPanel();
        AccesoriesPanel = new javax.swing.JPanel();
        spAccessories = new javax.swing.JScrollPane();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        tName1 = new javax.swing.JTextField();
        tCountFrom = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        tCountTo = new javax.swing.JTextField();
        bSearchAccess = new javax.swing.JButton();
        bAllAccess = new javax.swing.JButton();
        bDeleteAccess = new javax.swing.JButton();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        tAddAccessName = new javax.swing.JTextField();
        tAddAccessCount = new javax.swing.JTextField();
        bAddMedicine1 = new javax.swing.JButton();
        jLabel15 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        tSearchAccessPrzeznaczenie = new javax.swing.JTextField();
        tAddAccesPrzeznaczenie = new javax.swing.JTextField();
        OfficesPanel = new javax.swing.JPanel();
        AccesoriesPanel1 = new javax.swing.JPanel();
        spOffice = new javax.swing.JScrollPane();
        jLabel21 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        tName2 = new javax.swing.JTextField();
        tNumberFrom = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        tNumberTo = new javax.swing.JTextField();
        bSearchOffice = new javax.swing.JButton();
        bAllOffices = new javax.swing.JButton();
        bDeleteOffice = new javax.swing.JButton();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        tAddOfficeName = new javax.swing.JTextField();
        tAddOfficeNumber = new javax.swing.JTextField();
        bAddOffice = new javax.swing.JButton();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        tSearchOfficesDesc = new javax.swing.JTextField();
        tAddOfficeDesc = new javax.swing.JTextField();
        VaccinesPanel = new javax.swing.JPanel();
        AccesoriesPanel2 = new javax.swing.JPanel();
        spVaccine = new javax.swing.JScrollPane();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        tVaccineName = new javax.swing.JTextField();
        tVaccinePriceFrom = new javax.swing.JTextField();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        tVaccinePriceTo = new javax.swing.JTextField();
        bSearchVaccine = new javax.swing.JButton();
        bAllVaccine = new javax.swing.JButton();
        bDeleteVaccine = new javax.swing.JButton();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        tAddVaccineName = new javax.swing.JTextField();
        tAddVaccinePrice = new javax.swing.JTextField();
        bAddVaccine = new javax.swing.JButton();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        tSearchVaccineDesc = new javax.swing.JTextField();
        tAddVaccineDesc = new javax.swing.JTextField();
        MedicineProducersPanel = new javax.swing.JPanel();
        AccesoriesPanel3 = new javax.swing.JPanel();
        spProducers = new javax.swing.JScrollPane();
        jLabel40 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        tProducersName = new javax.swing.JTextField();
        tProducersAdress = new javax.swing.JTextField();
        jLabel42 = new javax.swing.JLabel();
        bSearchProducers = new javax.swing.JButton();
        bAllProducers = new javax.swing.JButton();
        bDeleteProducers = new javax.swing.JButton();
        jLabel44 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        tAddProducersName = new javax.swing.JTextField();
        tAddProducersAdress = new javax.swing.JTextField();
        bAddProducers = new javax.swing.JButton();
        jLabel47 = new javax.swing.JLabel();
        jLabel48 = new javax.swing.JLabel();
        tProducersTelephone = new javax.swing.JTextField();
        tAddProducersTelephone = new javax.swing.JTextField();
        PrescriptionPanel = new javax.swing.JPanel();
        AccesoriesPanel4 = new javax.swing.JPanel();
        spRecipes = new javax.swing.JScrollPane();
        jLabel43 = new javax.swing.JLabel();
        jLabel49 = new javax.swing.JLabel();
        tRecipesName = new javax.swing.JTextField();
        tRecipesPesel = new javax.swing.JTextField();
        jLabel50 = new javax.swing.JLabel();
        bSearchByPersonRecipe = new javax.swing.JButton();
        jLabel51 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        cbSpecRecipe = new javax.swing.JComboBox();
        cbDoctorsRecipe = new javax.swing.JComboBox();
        bSearchByDocRecipe = new javax.swing.JButton();
        ControlPanel = new javax.swing.JPanel();
        jButton6 = new javax.swing.JButton();
        StatsPanel = new javax.swing.JPanel();
        Panel_WizytaDomowa1 = new javax.swing.JTabbedPane();
        jPanel3 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        Stat1_wynik = new javax.swing.JScrollPane();
        Stat1_button = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jLabel62 = new javax.swing.JLabel();
        Stat2_wynik = new javax.swing.JScrollPane();
        Stat2_button = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jLabel64 = new javax.swing.JLabel();
        Stat3_wynik = new javax.swing.JScrollPane();
        Stat3_button = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jLabel68 = new javax.swing.JLabel();
        Stat4_wynik = new javax.swing.JScrollPane();
        Stat4_button = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jLabel71 = new javax.swing.JLabel();
        Stat5_wynik = new javax.swing.JScrollPane();
        Stat5_b1 = new javax.swing.JTextField();
        Stat5_b2 = new javax.swing.JTextField();
        jLabel72 = new javax.swing.JLabel();
        jLabel112 = new javax.swing.JLabel();
        Stat5_button = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jLabel145 = new javax.swing.JLabel();
        Stat6_wynik = new javax.swing.JScrollPane();
        Stat6_button = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jLabel146 = new javax.swing.JLabel();
        Stat7_wynik = new javax.swing.JScrollPane();
        Stat7_button = new javax.swing.JButton();
        jPanel10 = new javax.swing.JPanel();
        jLabel147 = new javax.swing.JLabel();
        Stat8_wynik = new javax.swing.JScrollPane();
        Stat8_button = new javax.swing.JButton();
        jPanel11 = new javax.swing.JPanel();
        jLabel148 = new javax.swing.JLabel();
        Stat9_wynik = new javax.swing.JScrollPane();
        jLabel150 = new javax.swing.JLabel();
        Stat9_data = new javax.swing.JTextField();
        Stat9_button = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        jLabel149 = new javax.swing.JLabel();
        Stat10_wynik = new javax.swing.JScrollPane();
        Stat10_button = new javax.swing.JButton();
        Panel_WizytaDomowa = new javax.swing.JTabbedPane();
        UsersPanel9 = new javax.swing.JPanel();
        pacjent_nadchodzace_terminy_aktualizuj = new javax.swing.JButton();
        jLabel58 = new javax.swing.JLabel();
        pacjent_nadchodzace_terminy_1 = new javax.swing.JScrollPane();
        pacjent_nadchodzace_terminy_2 = new javax.swing.JScrollPane();
        jLabel65 = new javax.swing.JLabel();
        pacjent_nadchodzace_terminy_4 = new javax.swing.JScrollPane();
        pacjent_nadchodzace_terminy_3 = new javax.swing.JScrollPane();
        jLabel66 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        pacjent_nadchodzace_terminy_5 = new javax.swing.JScrollPane();
        jLabel69 = new javax.swing.JLabel();
        jLabel70 = new javax.swing.JLabel();
        pacjent_nadchodzace_terminy_6 = new javax.swing.JScrollPane();
        UsersPanel1 = new javax.swing.JPanel();
        pacjent_historia_wizyt_lista = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj = new javax.swing.JButton();
        pacjent_historia_wizyt_recepty = new javax.swing.JScrollPane();
        jLabel107 = new javax.swing.JLabel();
        jLabel108 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        pacjent_historia_wizyty_rozpoznanie = new javax.swing.JTextArea();
        jScrollPane2 = new javax.swing.JScrollPane();
        pacjent_historia_wizyty_zalecenia = new javax.swing.JTextArea();
        jScrollPane3 = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_recepty_szczegoly = new javax.swing.JTextArea();
        UsersPanel8 = new javax.swing.JPanel();
        prev_wszyscylekarze2 = new javax.swing.JButton();
        date_wizytydomowe = new javax.swing.JLabel();
        next_wszyscylekarze2 = new javax.swing.JButton();
        scCalendar_wizytydomowe = new javax.swing.JScrollPane();
        jButton9 = new javax.swing.JButton();
        UsersPanel2 = new javax.swing.JPanel();
        PacjentPanel_1 = new javax.swing.JTabbedPane();
        UsersPanel3 = new javax.swing.JPanel();
        pacjent_wyniki_badan_moczu = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj4 = new javax.swing.JButton();
        ob1 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jLabel57 = new javax.swing.JLabel();
        jLabel59 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        jLabel61 = new javax.swing.JLabel();
        ob2 = new javax.swing.JTextField();
        jTextField6 = new javax.swing.JTextField();
        jTextField7 = new javax.swing.JTextField();
        jLabel74 = new javax.swing.JLabel();
        ob3 = new javax.swing.JTextField();
        jTextField9 = new javax.swing.JTextField();
        jTextField10 = new javax.swing.JTextField();
        jLabel75 = new javax.swing.JLabel();
        ob4 = new javax.swing.JTextField();
        jTextField12 = new javax.swing.JTextField();
        jTextField13 = new javax.swing.JTextField();
        jLabel76 = new javax.swing.JLabel();
        ob5 = new javax.swing.JTextField();
        jTextField15 = new javax.swing.JTextField();
        jTextField16 = new javax.swing.JTextField();
        jLabel77 = new javax.swing.JLabel();
        ob6 = new javax.swing.JTextField();
        jTextField18 = new javax.swing.JTextField();
        jTextField19 = new javax.swing.JTextField();
        jLabel78 = new javax.swing.JLabel();
        ob7 = new javax.swing.JTextField();
        jTextField21 = new javax.swing.JTextField();
        jTextField22 = new javax.swing.JTextField();
        jLabel79 = new javax.swing.JLabel();
        ob8 = new javax.swing.JTextField();
        jTextField24 = new javax.swing.JTextField();
        jTextField25 = new javax.swing.JTextField();
        jLabel80 = new javax.swing.JLabel();
        ob9 = new javax.swing.JTextField();
        jTextField27 = new javax.swing.JTextField();
        jTextField28 = new javax.swing.JTextField();
        jLabel81 = new javax.swing.JLabel();
        ob10 = new javax.swing.JTextField();
        jTextField30 = new javax.swing.JTextField();
        jTextField31 = new javax.swing.JTextField();
        jLabel82 = new javax.swing.JLabel();
        ob11 = new javax.swing.JTextField();
        jTextField33 = new javax.swing.JTextField();
        jTextField34 = new javax.swing.JTextField();
        jLabel83 = new javax.swing.JLabel();
        ob12 = new javax.swing.JTextField();
        jTextField36 = new javax.swing.JTextField();
        jTextField37 = new javax.swing.JTextField();
        jLabel84 = new javax.swing.JLabel();
        jLabel85 = new javax.swing.JLabel();
        ob13 = new javax.swing.JTextField();
        jTextField45 = new javax.swing.JTextField();
        jTextField46 = new javax.swing.JTextField();
        jLabel87 = new javax.swing.JLabel();
        ob14 = new javax.swing.JTextField();
        jTextField48 = new javax.swing.JTextField();
        jTextField49 = new javax.swing.JTextField();
        jLabel73 = new javax.swing.JLabel();
        jLabel86 = new javax.swing.JLabel();
        jLabel88 = new javax.swing.JLabel();
        jLabel89 = new javax.swing.JLabel();
        jLabel90 = new javax.swing.JLabel();
        jLabel91 = new javax.swing.JLabel();
        jLabel92 = new javax.swing.JLabel();
        UsersPanel6 = new javax.swing.JPanel();
        pacjent_wyniki_lipidogram = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj7 = new javax.swing.JButton();
        lipi_ob1 = new javax.swing.JTextField();
        jTextField40 = new javax.swing.JTextField();
        jLabel93 = new javax.swing.JLabel();
        jLabel94 = new javax.swing.JLabel();
        jLabel95 = new javax.swing.JLabel();
        jTextField41 = new javax.swing.JTextField();
        jLabel96 = new javax.swing.JLabel();
        lipi_ob2 = new javax.swing.JTextField();
        jTextField43 = new javax.swing.JTextField();
        jTextField44 = new javax.swing.JTextField();
        jLabel97 = new javax.swing.JLabel();
        lipi_ob3 = new javax.swing.JTextField();
        jTextField51 = new javax.swing.JTextField();
        jTextField52 = new javax.swing.JTextField();
        jLabel98 = new javax.swing.JLabel();
        lipi_ob4 = new javax.swing.JTextField();
        jTextField54 = new javax.swing.JTextField();
        jTextField55 = new javax.swing.JTextField();
        jLabel99 = new javax.swing.JLabel();
        lipi_ob5 = new javax.swing.JTextField();
        jTextField57 = new javax.swing.JTextField();
        jTextField58 = new javax.swing.JTextField();
        jLabel109 = new javax.swing.JLabel();
        jLabel113 = new javax.swing.JLabel();
        jLabel114 = new javax.swing.JLabel();
        jLabel115 = new javax.swing.JLabel();
        jLabel100 = new javax.swing.JLabel();
        jLabel101 = new javax.swing.JLabel();
        UsersPanel16 = new javax.swing.JPanel();
        pacjent_wyniki_morfologia = new javax.swing.JScrollPane();
        pacjent_historia_wizyt_aktualizuj8 = new javax.swing.JButton();
        morfo_ob1 = new javax.swing.JTextField();
        jTextField60 = new javax.swing.JTextField();
        jLabel102 = new javax.swing.JLabel();
        jLabel103 = new javax.swing.JLabel();
        jLabel104 = new javax.swing.JLabel();
        jTextField61 = new javax.swing.JTextField();
        jLabel105 = new javax.swing.JLabel();
        morfo_ob2 = new javax.swing.JTextField();
        jTextField63 = new javax.swing.JTextField();
        jTextField64 = new javax.swing.JTextField();
        jLabel106 = new javax.swing.JLabel();
        morfo_ob3 = new javax.swing.JTextField();
        jTextField66 = new javax.swing.JTextField();
        jTextField67 = new javax.swing.JTextField();
        jLabel110 = new javax.swing.JLabel();
        morfo_ob4 = new javax.swing.JTextField();
        jTextField69 = new javax.swing.JTextField();
        jTextField70 = new javax.swing.JTextField();
        jLabel111 = new javax.swing.JLabel();
        morfo_ob5 = new javax.swing.JTextField();
        jTextField72 = new javax.swing.JTextField();
        jTextField73 = new javax.swing.JTextField();
        jLabel116 = new javax.swing.JLabel();
        morfo_ob6 = new javax.swing.JTextField();
        jTextField75 = new javax.swing.JTextField();
        jTextField76 = new javax.swing.JTextField();
        jLabel117 = new javax.swing.JLabel();
        morfo_ob7 = new javax.swing.JTextField();
        jTextField78 = new javax.swing.JTextField();
        jTextField79 = new javax.swing.JTextField();
        jLabel118 = new javax.swing.JLabel();
        morfo_ob8 = new javax.swing.JTextField();
        jTextField81 = new javax.swing.JTextField();
        jTextField82 = new javax.swing.JTextField();
        jLabel119 = new javax.swing.JLabel();
        morfo_ob9 = new javax.swing.JTextField();
        jTextField84 = new javax.swing.JTextField();
        jTextField85 = new javax.swing.JTextField();
        jLabel120 = new javax.swing.JLabel();
        morfo_ob10 = new javax.swing.JTextField();
        jTextField87 = new javax.swing.JTextField();
        jTextField88 = new javax.swing.JTextField();
        jLabel121 = new javax.swing.JLabel();
        morfo_ob11 = new javax.swing.JTextField();
        jTextField90 = new javax.swing.JTextField();
        jTextField91 = new javax.swing.JTextField();
        jLabel122 = new javax.swing.JLabel();
        morfo_ob12 = new javax.swing.JTextField();
        jTextField93 = new javax.swing.JTextField();
        jTextField94 = new javax.swing.JTextField();
        jLabel123 = new javax.swing.JLabel();
        jLabel124 = new javax.swing.JLabel();
        morfo_ob13 = new javax.swing.JTextField();
        jTextField96 = new javax.swing.JTextField();
        jTextField97 = new javax.swing.JTextField();
        jLabel125 = new javax.swing.JLabel();
        morfo_ob14 = new javax.swing.JTextField();
        jTextField99 = new javax.swing.JTextField();
        jTextField100 = new javax.swing.JTextField();
        jLabel126 = new javax.swing.JLabel();
        morfo_ob15 = new javax.swing.JTextField();
        jTextField102 = new javax.swing.JTextField();
        jTextField103 = new javax.swing.JTextField();
        jLabel127 = new javax.swing.JLabel();
        morfo_ob16 = new javax.swing.JTextField();
        jTextField105 = new javax.swing.JTextField();
        jTextField106 = new javax.swing.JTextField();
        jLabel128 = new javax.swing.JLabel();
        morfo_ob17 = new javax.swing.JTextField();
        jTextField108 = new javax.swing.JTextField();
        jTextField109 = new javax.swing.JTextField();
        jLabel129 = new javax.swing.JLabel();
        morfo_ob18 = new javax.swing.JTextField();
        jTextField111 = new javax.swing.JTextField();
        jTextField112 = new javax.swing.JTextField();
        jLabel130 = new javax.swing.JLabel();
        jLabel131 = new javax.swing.JLabel();
        jLabel132 = new javax.swing.JLabel();
        jLabel133 = new javax.swing.JLabel();
        jLabel134 = new javax.swing.JLabel();
        jLabel135 = new javax.swing.JLabel();
        jLabel136 = new javax.swing.JLabel();
        jLabel137 = new javax.swing.JLabel();
        jLabel138 = new javax.swing.JLabel();
        jLabel139 = new javax.swing.JLabel();
        jLabel140 = new javax.swing.JLabel();
        jLabel141 = new javax.swing.JLabel();
        jLabel142 = new javax.swing.JLabel();
        PacjentPanel_3 = new javax.swing.JTabbedPane();
        UsersPanel17 = new javax.swing.JPanel();
        prev_swojlekarz = new javax.swing.JButton();
        date_swojlekarz = new javax.swing.JLabel();
        next_swojlekarz = new javax.swing.JButton();
        scCalendar_swojlekarz = new javax.swing.JScrollPane();
        Button_swojlekarz = new javax.swing.JButton();
        UsersPanel18 = new javax.swing.JPanel();
        jLabel143 = new javax.swing.JLabel();
        DoktorCOMBO = new javax.swing.JComboBox();
        jButton8 = new javax.swing.JButton();
        prev_wszyscylekarze = new javax.swing.JButton();
        next_wszyscylekarze = new javax.swing.JButton();
        date_wszyscylekarze = new javax.swing.JLabel();
        scCalendar_wszyscylekarze = new javax.swing.JScrollPane();
        UsersPanel19 = new javax.swing.JPanel();
        jLabel144 = new javax.swing.JLabel();
        COMBO_badania_wolneterminy = new javax.swing.JComboBox();
        Badania_wolneterminy_button = new javax.swing.JButton();
        next_badania_wolneterminy = new javax.swing.JButton();
        date3 = new javax.swing.JLabel();
        prev_badania_wolneterminy = new javax.swing.JButton();
        scCalendar_badania_wolneterminy = new javax.swing.JScrollPane();
        data_badania_wolneterminy = new javax.swing.JLabel();
        PacjentPanel_4 = new javax.swing.JTabbedPane();
        UsersPanel20 = new javax.swing.JPanel();
        prev_badaniertg = new javax.swing.JButton();
        date_badaniertg = new javax.swing.JLabel();
        next_badaniertg = new javax.swing.JButton();
        scCalendar_badaniertg = new javax.swing.JScrollPane();
        Button_badaniertg = new javax.swing.JButton();
        UsersPanel21 = new javax.swing.JPanel();
        prev_badanieusg = new javax.swing.JButton();
        date_badanieusg = new javax.swing.JLabel();
        next_badanieusg = new javax.swing.JButton();
        scCalendar_badanieusg = new javax.swing.JScrollPane();
        Button_badanieusg = new javax.swing.JButton();
        UsersPanel22 = new javax.swing.JPanel();
        scCalendar_szczepionki = new javax.swing.JScrollPane();
        Button_szczepionki = new javax.swing.JButton();
        prev_szczepionki = new javax.swing.JButton();
        next_szczepionki = new javax.swing.JButton();
        date_szczepionki = new javax.swing.JLabel();
        COMBO_szczepionki = new javax.swing.JComboBox();
        jLabel63 = new javax.swing.JLabel();
        lTitle = new javax.swing.JLabel();
        bLogout = new javax.swing.JButton();
        lWhoIsLogin = new javax.swing.JLabel();
        lLoginName = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Przychodnia");

        AuthorizationTabbedPane.setPreferredSize(new java.awt.Dimension(800, 600));

        jTabbedPane1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                DoctorTabPaneMouseClicked(evt);
            }
        });

        jButton1.setText("Pokaż pacjentów");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Dzisiejsi pacjenci");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel52.setText("Wyszukaj pacjenta");

        jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                Menu.this.keyReleased(evt);
            }
        });

        jButton5.setText("Dzisiejsze wizyty domowe");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jLabel52, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
                    .addComponent(jTextField1)
                    .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scPacjenci, javax.swing.GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton5)
                .addGap(10, 10, 10)
                .addComponent(jLabel52)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(424, Short.MAX_VALUE))
            .addComponent(scPacjenci)
        );

        jTabbedPane1.addTab("Pacjenci", jPanel1);

        pCalendar.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                calendarFocusGained(evt);
            }
        });

        jButton3.setText("Poprzedni tydzień");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setText("Nastepny tydzień");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        date.setText("jLabel57");

        javax.swing.GroupLayout pCalendarLayout = new javax.swing.GroupLayout(pCalendar);
        pCalendar.setLayout(pCalendarLayout);
        pCalendarLayout.setHorizontalGroup(
            pCalendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scCalendar)
            .addGroup(pCalendarLayout.createSequentialGroup()
                .addGap(164, 164, 164)
                .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(date)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
                .addGap(200, 200, 200))
        );
        pCalendarLayout.setVerticalGroup(
            pCalendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pCalendarLayout.createSequentialGroup()
                .addGroup(pCalendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton3)
                    .addComponent(jButton4)
                    .addComponent(date))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar, javax.swing.GroupLayout.DEFAULT_SIZE, 546, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Terminarz", pCalendar);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(scTerms, javax.swing.GroupLayout.DEFAULT_SIZE, 775, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(scTerms, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Dostępność terminów", jPanel2);

        javax.swing.GroupLayout MedicPanelLayout = new javax.swing.GroupLayout(MedicPanel);
        MedicPanel.setLayout(MedicPanelLayout);
        MedicPanelLayout.setHorizontalGroup(
            MedicPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1)
        );
        MedicPanelLayout.setVerticalGroup(
            MedicPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        AuthorizationTabbedPane.addTab("Medyk", MedicPanel);

        AdminPanel.setPreferredSize(new java.awt.Dimension(800, 600));

        AdminTabbedPane.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        bAllUsers.setText("Wszyscy użytkownicy");
        bAllUsers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAllUsersActionPerformed(evt);
            }
        });

        lSearchTitle.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lSearchTitle.setText("Wyszukaj/Edytuj:");

        lFirstName.setText("Imię:");

        tFirstNameSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchActionPerformed(evt);
            }
        });

        lLastName.setText("Nazwisko:");

        tLastNameSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchActionPerformed(evt);
            }
        });

        lAuthorization.setText("Uprawnienie:");

        lEMail.setText("e-Mail:");

        tEmailSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchActionPerformed(evt);
            }
        });

        cIsActiveSearch.setText("Aktywny");
        cIsActiveSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cIsActiveSearchActionPerformed(evt);
            }
        });

        bSearch.setText("Wyszukaj");
        bSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchActionPerformed(evt);
            }
        });

        DeleteUser.setText("Usuń użytkowanika");
        DeleteUser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DeleteUserActionPerformed(evt);
            }
        });

        lAddTitle.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lAddTitle.setText("Dodaj:");

        bEdit.setText("Zmień");
        bEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bEditActionPerformed(evt);
            }
        });

        lLoginAdd.setText("Login:");

        lPasswordAdd.setText("Hasło:");

        lAuthotizationAdd.setText("Uprawnienie:");

        lFirstNameAdd.setText("Imię:");

        lLastNameAdd.setText("Nazwisko:");

        lEMailAdd.setText("e-Mail:");

        cIsActiveAdd.setText("Aktywacja użytkownika");
        cIsActiveAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cIsActiveAddActionPerformed(evt);
            }
        });

        bAdd.setText("Dodaj");
        bAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAddActionPerformed(evt);
            }
        });

        cbAuth.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Admin", "Medyk", "Pacjent", "Prezes" }));
        cbAuth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbAuthActionPerformed(evt);
            }
        });

        PacjentPanel.setVisible(false);

        lPesel.setText("Pesel:");

        lAdress.setText("Adres:");

        lNrU.setText("Nr U:");

        lDoc.setText("Lekarz:");

        cbDocPat.setModel(new javax.swing.DefaultComboBoxModel(usersT.getDoctorsList()));

        javax.swing.GroupLayout PacjentPanelLayout = new javax.swing.GroupLayout(PacjentPanel);
        PacjentPanel.setLayout(PacjentPanelLayout);
        PacjentPanelLayout.setHorizontalGroup(
            PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PacjentPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PacjentPanelLayout.createSequentialGroup()
                        .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lAdress)
                            .addComponent(lPesel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tPesel)
                            .addComponent(tAdress)))
                    .addGroup(PacjentPanelLayout.createSequentialGroup()
                        .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lNrU)
                            .addComponent(lDoc))
                        .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PacjentPanelLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cbDocPat, 0, 128, Short.MAX_VALUE))
                            .addGroup(PacjentPanelLayout.createSequentialGroup()
                                .addGap(1, 1, 1)
                                .addComponent(tNrU)))))
                .addContainerGap())
        );
        PacjentPanelLayout.setVerticalGroup(
            PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PacjentPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lPesel)
                    .addComponent(tPesel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tAdress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lAdress))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lNrU)
                    .addComponent(tNrU, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PacjentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbDocPat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lDoc))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        DoktorPanel.setVisible(false);

        lSpec.setText("Specjalizacja:");

        cbSpec.setModel(new javax.swing.DefaultComboBoxModel(usersT.getDoctorsSpecList()));

        lNrLic.setText("Nr Licencji:");

        javax.swing.GroupLayout DoktorPanelLayout = new javax.swing.GroupLayout(DoktorPanel);
        DoktorPanel.setLayout(DoktorPanelLayout);
        DoktorPanelLayout.setHorizontalGroup(
            DoktorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DoktorPanelLayout.createSequentialGroup()
                .addGroup(DoktorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(DoktorPanelLayout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(lNrLic))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, DoktorPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(lSpec)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(DoktorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cbSpec, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(tNrLic))
                .addContainerGap())
        );
        DoktorPanelLayout.setVerticalGroup(
            DoktorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DoktorPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(DoktorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lSpec)
                    .addComponent(cbSpec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(DoktorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lNrLic)
                    .addComponent(tNrLic, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        cbAuth1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Admin", "Medyk", "Pacjent", "Prezes" }));
        cbAuth1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbAuthActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanelLayout = new javax.swing.GroupLayout(UsersPanel);
        UsersPanel.setLayout(UsersPanelLayout);
        UsersPanelLayout.setHorizontalGroup(
            UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanelLayout.createSequentialGroup()
                .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lSearchTitle)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addComponent(lFirstName, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(40, 40, 40)
                                .addComponent(tFirstNameSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addComponent(lLastName, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(40, 40, 40)
                                .addComponent(tLastNameSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addComponent(lAuthorization)
                                .addGap(39, 39, 39)
                                .addComponent(cbAuth1, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addComponent(lEMail, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(40, 40, 40)
                                .addComponent(tEmailSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addComponent(bSearch)
                                .addGap(6, 6, 6)
                                .addComponent(bEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(6, 6, 6)
                                .addComponent(cIsActiveSearch))
                            .addComponent(lAddTitle)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(lLoginAdd)
                                .addGap(68, 68, 68)
                                .addComponent(tLoginAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lPasswordAdd)
                                .addGap(68, 68, 68)
                                .addComponent(tPasswordAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lAuthotizationAdd)
                                .addGap(36, 36, 36)
                                .addComponent(cbAuth, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lFirstNameAdd)
                                .addGap(75, 75, 75)
                                .addComponent(tFirstNameAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lLastNameAdd)
                                .addGap(51, 51, 51)
                                .addComponent(tLastNameAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lEMailAdd)
                                .addGap(66, 66, 66)
                                .addComponent(tEMailAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(cIsActiveAdd)))
                .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(PacjentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(DoktorPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(19, 19, 19))
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(spUsersTable))
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(bAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bAllUsers)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(DeleteUser)
                        .addContainerGap(182, Short.MAX_VALUE))))
        );
        UsersPanelLayout.setVerticalGroup(
            UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanelLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addComponent(lSearchTitle)
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lFirstName))
                            .addComponent(tFirstNameSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lLastName))
                            .addComponent(tLastNameSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(9, 9, 9)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lAuthorization))
                            .addComponent(cbAuth1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lEMail))
                            .addComponent(tEmailSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bSearch)
                            .addComponent(bEdit)
                            .addComponent(cIsActiveSearch))
                        .addGap(4, 4, 4)
                        .addComponent(lAddTitle)
                        .addGap(11, 11, 11)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lLoginAdd))
                            .addComponent(tLoginAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(4, 4, 4)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lPasswordAdd))
                            .addComponent(tPasswordAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lAuthotizationAdd))
                            .addComponent(cbAuth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lFirstNameAdd))
                            .addComponent(tFirstNameAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lLastNameAdd))
                            .addComponent(tLastNameAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(lEMailAdd))
                            .addComponent(tEMailAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cIsActiveAdd))
                    .addGroup(UsersPanelLayout.createSequentialGroup()
                        .addComponent(spUsersTable, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(bAdd)
                            .addComponent(bAllUsers)
                            .addComponent(DeleteUser))
                        .addGroup(UsersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(7, 7, 7)
                                .addComponent(PacjentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanelLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(DoktorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(196, Short.MAX_VALUE))
        );

        AdminTabbedPane.addTab("Userzy", UsersPanel);

        PacjentPanel_6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        PacjentPanel_6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PacjentPanel_6MouseClicked(evt);
            }
        });

        jLabel151.setText("Wyszukaj pacjenta:");

        jLabel153.setText("Po nazwisku:");

        jLabel154.setText("Po numerze pesel:");

        jLabel155.setText("Po numerze ubezpieczenia:");

        jLabel156.setText("Wybierz lekarza do ktorego pacjent chce zostac zarejestrowany:");
        jLabel156.setEnabled(false);

        rejestracja_radio1.setSelected(true);
        rejestracja_radio1.setText("Pacjent chce zostać zarejestrowany do lekarza rodzinnego");
        rejestracja_radio1.setEnabled(false);
        rejestracja_radio1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_radio1ActionPerformed(evt);
            }
        });

        rejestracja_radio2.setText("Pacjent chce zostac zarejestrowany do innego lekarza");
        rejestracja_radio2.setEnabled(false);
        rejestracja_radio2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_radio2ActionPerformed(evt);
            }
        });

        rejestracja_doctor_list.setModel(new javax.swing.DefaultComboBoxModel(Users.getDoctorsList_COMBOBOX()));
        rejestracja_doctor_list.setEnabled(false);

        rejestracja_wizyta_b1.setText("Szukaj");
        rejestracja_wizyta_b1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_b1ActionPerformed(evt);
            }
        });

        rejestracja_wizyta_b2.setText("Szukaj");
        rejestracja_wizyta_b2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_b2ActionPerformed(evt);
            }
        });

        rejestracja_wizyta_b3.setText("Szukaj");
        rejestracja_wizyta_b3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_b3ActionPerformed(evt);
            }
        });

        rejestracja_wizyta_ball.setText("Pokaz wszystkich");
        rejestracja_wizyta_ball.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_ballActionPerformed(evt);
            }
        });

        otworz_kalendarz_rejestracji.setText("Otworz kalendarz rejestracji i ciesz sie zyciem!");
        otworz_kalendarz_rejestracji.setEnabled(false);
        otworz_kalendarz_rejestracji.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                otworz_kalendarz_rejestracjiActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanel26Layout = new javax.swing.GroupLayout(UsersPanel26);
        UsersPanel26.setLayout(UsersPanel26Layout);
        UsersPanel26Layout.setHorizontalGroup(
            UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel26Layout.createSequentialGroup()
                .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel26Layout.createSequentialGroup()
                        .addGap(374, 374, 374)
                        .addComponent(date_badaniertg2))
                    .addGroup(UsersPanel26Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rejestracja_radio1)
                            .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(rejestracja_radio2)
                                .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(pomoc_id_pacjenta)
                                    .addComponent(rejestracja_doctor_list, javax.swing.GroupLayout.PREFERRED_SIZE, 264, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(UsersPanel26Layout.createSequentialGroup()
                                .addGap(21, 21, 21)
                                .addComponent(otworz_kalendarz_rejestracji, javax.swing.GroupLayout.PREFERRED_SIZE, 679, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(UsersPanel26Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel156, javax.swing.GroupLayout.PREFERRED_SIZE, 392, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(72, Short.MAX_VALUE))
            .addGroup(UsersPanel26Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(rejestracja_wizyta_pacjent_list)
                    .addGroup(UsersPanel26Layout.createSequentialGroup()
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel153)
                            .addComponent(jLabel154)
                            .addComponent(jLabel155))
                        .addGap(28, 28, 28)
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(rejestracja_wizyta_ubezp, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rejestracja_wizyta_pesel)
                            .addComponent(rejestracja_wizyta_nazwisko))
                        .addGap(18, 18, 18)
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(rejestracja_wizyta_b2, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)
                            .addComponent(rejestracja_wizyta_b3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(rejestracja_wizyta_b1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(77, 77, 77)
                        .addComponent(rejestracja_wizyta_ball, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(UsersPanel26Layout.createSequentialGroup()
                        .addComponent(jLabel151, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(359, 359, 359))))
        );
        UsersPanel26Layout.setVerticalGroup(
            UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel26Layout.createSequentialGroup()
                .addComponent(date_badaniertg2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel151)
                .addGap(18, 18, 18)
                .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(UsersPanel26Layout.createSequentialGroup()
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel153)
                            .addComponent(rejestracja_wizyta_nazwisko, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rejestracja_wizyta_b1))
                        .addGap(2, 2, 2)
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel154, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rejestracja_wizyta_pesel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rejestracja_wizyta_b2))
                        .addGap(3, 3, 3)
                        .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(rejestracja_wizyta_ubezp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel155))
                            .addComponent(rejestracja_wizyta_b3)))
                    .addComponent(rejestracja_wizyta_ball, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(9, 9, 9)
                .addComponent(rejestracja_wizyta_pacjent_list, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel156)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rejestracja_radio1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rejestracja_radio2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rejestracja_doctor_list, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pomoc_id_pacjenta)
                .addGap(25, 25, 25)
                .addComponent(otworz_kalendarz_rejestracji, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(106, Short.MAX_VALUE))
        );

        PacjentPanel_6.addTab("Zarejestruj pacjenta ręcznie", UsersPanel26);

        jLabel152.setText("Wyszukaj pacjenta:");

        jLabel157.setText("Po nazwisku:");

        jLabel158.setText("Po numerze pesel:");

        jLabel159.setText("Po numerze ubezpieczenia:");

        rejestracja_wizyta_b4.setText("Szukaj");
        rejestracja_wizyta_b4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_b4ActionPerformed(evt);
            }
        });

        rejestracja_wizyta_b5.setText("Szukaj");
        rejestracja_wizyta_b5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_b5ActionPerformed(evt);
            }
        });

        rejestracja_wizyta_b6.setText("Szukaj");
        rejestracja_wizyta_b6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rejestracja_wizyta_b6ActionPerformed(evt);
            }
        });

        jButton7.setText("Usun zaznaczona rejestracje danego pacjenta");
        jButton7.setEnabled(false);
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jLabel160.setText("Zblizajace sie wizyty pacjenta: ");

        javax.swing.GroupLayout UsersPanel27Layout = new javax.swing.GroupLayout(UsersPanel27);
        UsersPanel27.setLayout(UsersPanel27Layout);
        UsersPanel27Layout.setHorizontalGroup(
            UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel27Layout.createSequentialGroup()
                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel27Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel27Layout.createSequentialGroup()
                                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel157)
                                    .addComponent(jLabel158)
                                    .addComponent(jLabel159))
                                .addGap(28, 28, 28)
                                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(rejestracja_wizyta_ubezp1, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(rejestracja_wizyta_pesel1)
                                    .addComponent(rejestracja_wizyta_nazwisko1))
                                .addGap(18, 18, 18)
                                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(rejestracja_wizyta_b5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(rejestracja_wizyta_b6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(rejestracja_wizyta_b4, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(UsersPanel27Layout.createSequentialGroup()
                                .addComponent(jLabel152, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(89, 89, 89))
                            .addGroup(UsersPanel27Layout.createSequentialGroup()
                                .addComponent(jLabel160)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel161, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 221, Short.MAX_VALUE))))
                    .addComponent(rejestracja_wizyta_pacjent_list1)
                    .addComponent(rejestracja_wizyta_pacjent_list2)
                    .addGroup(UsersPanel27Layout.createSequentialGroup()
                        .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(UsersPanel27Layout.createSequentialGroup()
                                .addGap(374, 374, 374)
                                .addComponent(date_badanieusg2)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(UsersPanel27Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jLabel162)
                .addGap(18, 18, 18)
                .addComponent(jLabel163)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        UsersPanel27Layout.setVerticalGroup(
            UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel27Layout.createSequentialGroup()
                .addComponent(date_badanieusg2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel152)
                .addGap(18, 18, 18)
                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel157)
                    .addComponent(rejestracja_wizyta_nazwisko1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(rejestracja_wizyta_b4))
                .addGap(2, 2, 2)
                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel158, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(rejestracja_wizyta_pesel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(rejestracja_wizyta_b5))
                .addGap(3, 3, 3)
                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(rejestracja_wizyta_ubezp1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel159))
                    .addComponent(rejestracja_wizyta_b6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rejestracja_wizyta_pacjent_list1, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel160)
                    .addComponent(jLabel161))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rejestracja_wizyta_pacjent_list2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton7)
                .addGap(84, 84, 84)
                .addGroup(UsersPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel163)
                    .addComponent(jLabel162))
                .addContainerGap())
        );

        PacjentPanel_6.addTab("Wyrejestruj pacjenta ręcznie", UsersPanel27);

        javax.swing.GroupLayout CheckupPanelLayout = new javax.swing.GroupLayout(CheckupPanel);
        CheckupPanel.setLayout(CheckupPanelLayout);
        CheckupPanelLayout.setHorizontalGroup(
            CheckupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CheckupPanelLayout.createSequentialGroup()
                .addComponent(PacjentPanel_6, javax.swing.GroupLayout.DEFAULT_SIZE, 795, Short.MAX_VALUE)
                .addGap(0, 0, 0))
        );
        CheckupPanelLayout.setVerticalGroup(
            CheckupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CheckupPanelLayout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addComponent(PacjentPanel_6)
                .addContainerGap())
        );

        ButtonGroup group = new ButtonGroup();
        group.add(rejestracja_radio1);
        group.add(rejestracja_radio2);

        AdminTabbedPane.addTab("Wizyty", CheckupPanel);

        PacjentPanel_8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        PacjentPanel_8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PacjentPanel_8MouseClicked(evt);
            }
        });

        mo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo1ActionPerformed(evt);
            }
        });

        mo3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo3ActionPerformed(evt);
            }
        });

        mo7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo7ActionPerformed(evt);
            }
        });

        mo8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo8ActionPerformed(evt);
            }
        });

        mo10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo10ActionPerformed(evt);
            }
        });

        mo13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo13ActionPerformed(evt);
            }
        });

        mo14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mo14ActionPerformed(evt);
            }
        });

        jLabel165.setText("Kryształy:");

        jLabel166.setText("Wałeczki:");

        jLabel167.setText("Nabłonki:");

        jLabel168.setText("Leukocyty:");

        jLabel169.setText("Erytrocyty");

        jLabel170.setText("Azotyny:");

        jLabel171.setText("Urobilinogen:");

        jLabel172.setText("Bilirubina:");

        jLabel173.setText("Ciała ketonowe:");

        jLabel174.setText("Glukoza:");

        jLabel175.setText("Bialko:");

        jLabel176.setText("pH:");

        jLabel177.setText("Ciężar właściwy:");

        jLabel178.setText("Objętość moczu:");

        lista_badaniamoczu_bezwpisu.setMaximumSize(new java.awt.Dimension(250, 360));
        lista_badaniamoczu_bezwpisu.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj5.setText("Aktualizuj listę");
        pacjent_historia_wizyt_aktualizuj5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizuj5ActionPerformed(evt);
            }
        });

        jButton10.setText("Zapisz dane do bazy");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        jLabel227.setText("Przed wyslaniem danych sprawdz ich poprawnosc! Wysylasz dane dla:");

        jLabel228.setText("Pacjent:");

        jLabel229.setText("Termin:");

        javax.swing.GroupLayout UsersPanel30Layout = new javax.swing.GroupLayout(UsersPanel30);
        UsersPanel30.setLayout(UsersPanel30Layout);
        UsersPanel30Layout.setHorizontalGroup(
            UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel30Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pacjent_historia_wizyt_aktualizuj5, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lista_badaniamoczu_bezwpisu, javax.swing.GroupLayout.PREFERRED_SIZE, 364, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel30Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(date_badanieusg3, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel30Layout.createSequentialGroup()
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel176)
                                    .addComponent(jLabel175)
                                    .addComponent(jLabel174)
                                    .addComponent(jLabel173)
                                    .addComponent(jLabel172)
                                    .addComponent(jLabel171)
                                    .addComponent(jLabel170)
                                    .addComponent(jLabel169)
                                    .addComponent(jLabel168)
                                    .addComponent(jLabel178, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel166)
                                    .addComponent(jLabel167)
                                    .addComponent(jLabel165)
                                    .addComponent(jLabel177, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(mo13, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo12, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo11, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo10, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo9, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo8, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo7, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo6, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo5, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo4, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo3, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo2, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo1, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(mo14, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel188, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(63, 63, 63))
                    .addGroup(UsersPanel30Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel30Layout.createSequentialGroup()
                                .addComponent(jLabel227)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel232))
                            .addGroup(UsersPanel30Layout.createSequentialGroup()
                                .addGap(22, 22, 22)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(UsersPanel30Layout.createSequentialGroup()
                                        .addComponent(jLabel228)
                                        .addGap(18, 18, 18)
                                        .addComponent(jLabel230))
                                    .addGroup(UsersPanel30Layout.createSequentialGroup()
                                        .addComponent(jLabel229)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel231))))
                            .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 377, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(UsersPanel30Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jLabel189)
                .addGap(18, 18, 18)
                .addComponent(jLabel190)
                .addContainerGap())
        );
        UsersPanel30Layout.setVerticalGroup(
            UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel30Layout.createSequentialGroup()
                .addComponent(date_badanieusg3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pacjent_historia_wizyt_aktualizuj5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel30Layout.createSequentialGroup()
                        .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel30Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jLabel188)
                                .addGap(340, 340, 340))
                            .addGroup(UsersPanel30Layout.createSequentialGroup()
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(mo1)
                                    .addComponent(jLabel178))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel177)
                                    .addComponent(mo2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel176)
                                    .addComponent(mo3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel175)
                                    .addComponent(mo4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel174)
                                    .addComponent(mo5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel173)
                                    .addComponent(mo6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel172)
                                    .addComponent(mo7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel171)
                                    .addComponent(mo8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel170)
                                    .addComponent(mo9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel169)
                                    .addComponent(mo10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel168)
                                    .addComponent(mo11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel167)
                                    .addComponent(mo12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel166)
                                    .addComponent(mo13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel165)
                                    .addComponent(mo14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(10, 10, 10)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel227)
                                    .addComponent(jLabel232))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel228)
                                    .addComponent(jLabel230))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel229)
                                    .addComponent(jLabel231))))
                        .addComponent(jButton10)
                        .addGap(98, 98, 98))
                    .addGroup(UsersPanel30Layout.createSequentialGroup()
                        .addComponent(lista_badaniamoczu_bezwpisu, javax.swing.GroupLayout.PREFERRED_SIZE, 483, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGroup(UsersPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel190)
                    .addComponent(jLabel189))
                .addContainerGap())
        );

        PacjentPanel_8.addTab("Wyniki - badanie moczu", UsersPanel30);

        li1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                li1ActionPerformed(evt);
            }
        });

        li3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                li3ActionPerformed(evt);
            }
        });

        jLabel208.setText("Lipoproteina A:");

        jLabel209.setText("HDL-cholesterol:");

        jLabel210.setText("LDL-cholesterol:");

        jLabel211.setText("Triglicerydy:");

        jLabel212.setText("Cholesterol calk:");

        lista_badaniamoczu_bezwpisu1.setMaximumSize(new java.awt.Dimension(250, 360));
        lista_badaniamoczu_bezwpisu1.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj6.setText("Aktualizuj listę");
        pacjent_historia_wizyt_aktualizuj6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizuj6ActionPerformed(evt);
            }
        });

        jButton11.setText("Zapisz dane do bazy");
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jLabel242.setText("Przed wyslaniem danych sprawdz ich poprawnosc! Wysylasz dane dla:");

        jLabel243.setText("Pacjent:");

        jLabel244.setText("Termin:");

        javax.swing.GroupLayout UsersPanel31Layout = new javax.swing.GroupLayout(UsersPanel31);
        UsersPanel31.setLayout(UsersPanel31Layout);
        UsersPanel31Layout.setHorizontalGroup(
            UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel31Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pacjent_historia_wizyt_aktualizuj6, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lista_badaniamoczu_bezwpisu1, javax.swing.GroupLayout.PREFERRED_SIZE, 364, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(date_badanieusg4, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel31Layout.createSequentialGroup()
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel210)
                                    .addComponent(jLabel209)
                                    .addComponent(jLabel208)
                                    .addComponent(jLabel212, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel211, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(li5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
                                    .addComponent(li4, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(li3, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(li2, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(li1, javax.swing.GroupLayout.Alignment.LEADING))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel196, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(63, 63, 63))
                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel31Layout.createSequentialGroup()
                                .addComponent(jLabel242)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel180)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel247))
                            .addGroup(UsersPanel31Layout.createSequentialGroup()
                                .addGap(22, 22, 22)
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                                        .addComponent(jLabel243)
                                        .addGap(18, 18, 18)
                                        .addComponent(jLabel245))
                                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                                        .addComponent(jLabel244)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel246)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel164)
                                    .addComponent(jLabel179)))
                            .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 377, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(UsersPanel31Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jLabel197)
                .addGap(18, 18, 18)
                .addComponent(jLabel198)
                .addContainerGap())
        );
        UsersPanel31Layout.setVerticalGroup(
            UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel31Layout.createSequentialGroup()
                .addComponent(date_badanieusg4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pacjent_historia_wizyt_aktualizuj6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel31Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jLabel196)
                                .addGap(340, 340, 340))
                            .addGroup(UsersPanel31Layout.createSequentialGroup()
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(li1)
                                    .addComponent(jLabel212))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel211)
                                    .addComponent(li2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel210)
                                            .addComponent(li3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel209)
                                            .addComponent(li4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel208)
                                            .addComponent(li5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(220, 220, 220)
                                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel242)
                                            .addComponent(jLabel247)
                                            .addComponent(jLabel180))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel243)
                                            .addComponent(jLabel245)
                                            .addComponent(jLabel164))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel244)
                                            .addComponent(jLabel246)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel31Layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel179)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))))
                        .addComponent(jButton11)
                        .addGap(98, 98, 98))
                    .addGroup(UsersPanel31Layout.createSequentialGroup()
                        .addComponent(lista_badaniamoczu_bezwpisu1, javax.swing.GroupLayout.PREFERRED_SIZE, 483, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGroup(UsersPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel198)
                    .addComponent(jLabel197))
                .addContainerGap())
        );

        PacjentPanel_8.addTab("Wyniki - lipidogram", UsersPanel31);

        kr1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr1ActionPerformed(evt);
            }
        });

        kr3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr3ActionPerformed(evt);
            }
        });

        kr7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr7ActionPerformed(evt);
            }
        });

        kr8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr8ActionPerformed(evt);
            }
        });

        kr10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr10ActionPerformed(evt);
            }
        });

        kr13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr13ActionPerformed(evt);
            }
        });

        kr14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr14ActionPerformed(evt);
            }
        });

        jLabel216.setText("Limfocyty B:");

        jLabel217.setText("Limfocyty(LYMPH):");

        jLabel218.setText("Bazofile (BASO):");

        jLabel219.setText("Eozynofile (EOS):");

        jLabel220.setText("Neutrofile (NEUT):");

        jLabel221.setText("Granulocyty:");

        jLabel222.setText("Leukocyty (WBC):");

        jLabel223.setText("Hematoktyt(HTC):");

        jLabel224.setText("Hemoglobina:");

        jLabel225.setText("MCHC:");

        jLabel226.setText("MCH:");

        jLabel248.setText("MCV:");

        jLabel249.setText("Retykulocyty(RET)");

        jLabel250.setText("Erytrocyty:");

        lista_badaniamoczu_bezwpisu3.setMaximumSize(new java.awt.Dimension(250, 360));
        lista_badaniamoczu_bezwpisu3.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj10.setText("Aktualizuj listę");
        pacjent_historia_wizyt_aktualizuj10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizuj10ActionPerformed(evt);
            }
        });

        jButton13.setText("Zapisz dane do bazy");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jLabel251.setText("Przed wyslaniem danych sprawdz ich poprawnosc! Wysylasz dane dla:");

        jLabel252.setText("Pacjent:");

        jLabel253.setText("Termin:");

        kr15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr15ActionPerformed(evt);
            }
        });

        kr17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                kr17ActionPerformed(evt);
            }
        });

        jLabel233.setText("Bialko:");

        jLabel257.setText("pH:");

        jLabel258.setText("Ciężar właściwy:");

        jLabel259.setText("Limfocyty T:");

        javax.swing.GroupLayout UsersPanel33Layout = new javax.swing.GroupLayout(UsersPanel33);
        UsersPanel33.setLayout(UsersPanel33Layout);
        UsersPanel33Layout.setHorizontalGroup(
            UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel33Layout.createSequentialGroup()
                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pacjent_historia_wizyt_aktualizuj10, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lista_badaniamoczu_bezwpisu3, javax.swing.GroupLayout.PREFERRED_SIZE, 364, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel33Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(date_badanieusg6, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel33Layout.createSequentialGroup()
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(jLabel248)
                                            .addComponent(jLabel226)
                                            .addComponent(jLabel225)
                                            .addComponent(jLabel224)
                                            .addComponent(jLabel223)
                                            .addComponent(jLabel222)
                                            .addComponent(jLabel221)
                                            .addComponent(jLabel220)
                                            .addComponent(jLabel219)
                                            .addComponent(jLabel250, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel217)
                                            .addComponent(jLabel218)
                                            .addComponent(jLabel216)
                                            .addComponent(jLabel249, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(kr13, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr12, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr11, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr10, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr9, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr8, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr7, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr6, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr5, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr3, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr2, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr1, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(kr14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
                                            .addComponent(kr4, javax.swing.GroupLayout.Alignment.LEADING))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(jLabel257)
                                                .addComponent(jLabel259, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jLabel258, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jLabel233, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(kr16, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
                                            .addComponent(kr17)
                                            .addComponent(kr18)
                                            .addComponent(kr15))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel213, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(UsersPanel33Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                                        .addComponent(jLabel251)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel181)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel256))
                                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                                        .addGap(22, 22, 22)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(UsersPanel33Layout.createSequentialGroup()
                                                .addComponent(jLabel252)
                                                .addGap(18, 18, 18)
                                                .addComponent(jLabel254))
                                            .addGroup(UsersPanel33Layout.createSequentialGroup()
                                                .addComponent(jLabel253)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jLabel255)))
                                        .addGap(18, 18, 18)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel182)
                                            .addComponent(jLabel183)))
                                    .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 377, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(jLabel214)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel215)))
                .addContainerGap())
        );
        UsersPanel33Layout.setVerticalGroup(
            UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel33Layout.createSequentialGroup()
                .addComponent(date_badanieusg6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pacjent_historia_wizyt_aktualizuj10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel33Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jLabel213)
                                .addGap(340, 340, 340))
                            .addGroup(UsersPanel33Layout.createSequentialGroup()
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(kr1)
                                            .addComponent(jLabel250))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel249)
                                            .addComponent(kr2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel248)
                                            .addComponent(kr3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel226)
                                            .addComponent(kr4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(kr15)
                                            .addComponent(jLabel259))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel258)
                                            .addComponent(kr16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel257)
                                            .addComponent(kr17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(1, 1, 1)
                                        .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel233)
                                            .addComponent(kr18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel225)
                                    .addComponent(kr5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel224)
                                    .addComponent(kr6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel223)
                                    .addComponent(kr7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel222)
                                    .addComponent(kr8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel221)
                                    .addComponent(kr9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel220)
                                    .addComponent(kr10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel219)
                                    .addComponent(kr11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel218)
                                    .addComponent(kr12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel217)
                                    .addComponent(kr13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(1, 1, 1)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel216)
                                    .addComponent(kr14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(10, 10, 10)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel251)
                                    .addComponent(jLabel256)
                                    .addComponent(jLabel181))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel252)
                                    .addComponent(jLabel254)
                                    .addComponent(jLabel182))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel253)
                                    .addComponent(jLabel255)
                                    .addComponent(jLabel183))))
                        .addComponent(jButton13)
                        .addGap(98, 98, 98))
                    .addGroup(UsersPanel33Layout.createSequentialGroup()
                        .addComponent(lista_badaniamoczu_bezwpisu3, javax.swing.GroupLayout.PREFERRED_SIZE, 483, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGroup(UsersPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel215)
                    .addComponent(jLabel214))
                .addContainerGap())
        );

        PacjentPanel_8.addTab("Wyniki - morfologia krwi", UsersPanel33);

        javax.swing.GroupLayout CheckupPanel2Layout = new javax.swing.GroupLayout(CheckupPanel2);
        CheckupPanel2.setLayout(CheckupPanel2Layout);
        CheckupPanel2Layout.setHorizontalGroup(
            CheckupPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1022, Short.MAX_VALUE)
            .addGroup(CheckupPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(CheckupPanel2Layout.createSequentialGroup()
                    .addGap(0, 0, 0)
                    .addComponent(PacjentPanel_8, javax.swing.GroupLayout.PREFERRED_SIZE, 1022, Short.MAX_VALUE)
                    .addGap(0, 0, 0)))
        );
        CheckupPanel2Layout.setVerticalGroup(
            CheckupPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 575, Short.MAX_VALUE)
            .addGroup(CheckupPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(CheckupPanel2Layout.createSequentialGroup()
                    .addGap(7, 7, 7)
                    .addComponent(PacjentPanel_8, javax.swing.GroupLayout.PREFERRED_SIZE, 560, Short.MAX_VALUE)
                    .addGap(8, 8, 8)))
        );

        AdminTabbedPane.addTab("Badania", CheckupPanel2);

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel2.setText("Szukaj:");

        jLabel3.setText("Nazwa:");

        cbRef.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tak","Nie","Oba"}));

        jLabel4.setText("Producent:");

        jLabel5.setText("Cena:    od:");

        jLabel6.setText("Refuncdacja:");

        cbProducent.setModel(new javax.swing.DefaultComboBoxModel(core.Drugs.getProducersList()));

        jLabel7.setText("do:");

        bSearchDrug.setText("Szukaj");
        bSearchDrug.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchDrugActionPerformed(evt);
            }
        });

        bAllDrugs.setText("Pokaż wszystkie");
        bAllDrugs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAllDrugsActionPerformed(evt);
            }
        });

        bDeleteMedicine.setText("Usuń lek");
        bDeleteMedicine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bDeleteMedicineActionPerformed(evt);
            }
        });

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel8.setText("Dodaj:");

        jLabel9.setText("Opis:");

        jLabel10.setText("Producent:");

        jLabel11.setText("Cena:");

        jLabel12.setText("Refuncdacja:");

        cbProducent1.setModel(new javax.swing.DefaultComboBoxModel(core.Drugs.getProducersList()));

        cbRef1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tak","Nie"}));

        bAddMedicine.setText("Dodaj");
        bAddMedicine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAddMedicineActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout MedicinePanelLayout = new javax.swing.GroupLayout(MedicinePanel);
        MedicinePanel.setLayout(MedicinePanelLayout);
        MedicinePanelLayout.setHorizontalGroup(
            MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MedicinePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(MedicinePanelLayout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(MedicinePanelLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(tName, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(MedicinePanelLayout.createSequentialGroup()
                                .addGap(73, 73, 73)
                                .addComponent(cbRef, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(8, 8, 8))))
                    .addComponent(jLabel2)
                    .addGroup(MedicinePanelLayout.createSequentialGroup()
                        .addComponent(bSearchDrug)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bAllDrugs, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(bDeleteMedicine, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(cbProducent, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(MedicinePanelLayout.createSequentialGroup()
                            .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel4)
                                .addComponent(jLabel3)
                                .addComponent(jLabel5))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tPriceFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tPriceTo, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, MedicinePanelLayout.createSequentialGroup()
                                .addComponent(jLabel9)
                                .addGap(18, 18, 18)
                                .addComponent(tAddMedicineName))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, MedicinePanelLayout.createSequentialGroup()
                                .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel10)
                                    .addComponent(jLabel11))
                                .addGap(1, 1, 1)
                                .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cbProducent1, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(tAddMedicinePrice, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, MedicinePanelLayout.createSequentialGroup()
                            .addComponent(jLabel12)
                            .addGap(18, 18, 18)
                            .addComponent(cbRef1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(bAddMedicine, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(spDrugsProducers, javax.swing.GroupLayout.DEFAULT_SIZE, 565, Short.MAX_VALUE)
                .addContainerGap())
        );
        MedicinePanelLayout.setVerticalGroup(
            MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MedicinePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(spDrugsProducers, javax.swing.GroupLayout.PREFERRED_SIZE, 388, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(MedicinePanelLayout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(tName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(cbProducent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tPriceFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5)
                            .addComponent(jLabel7)
                            .addComponent(tPriceTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbRef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(bSearchDrug)
                            .addComponent(bAllDrugs))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bDeleteMedicine)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(MedicinePanelLayout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addGap(25, 25, 25))
                            .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(tAddMedicineName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel9)))
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(cbProducent1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddMedicinePrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(MedicinePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12)
                            .addComponent(cbRef1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bAddMedicine)))
                .addContainerGap(176, Short.MAX_VALUE))
        );

        AdminTabbedPane.addTab("Leki", MedicinePanel);

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel13.setText("Szukaj:");

        jLabel14.setText("Nazwa:");

        jLabel16.setText("Ilość:    od:");

        jLabel18.setText("do:");

        bSearchAccess.setText("Szukaj");
        bSearchAccess.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchAccessActionPerformed(evt);
            }
        });

        bAllAccess.setText("Pokaż wszystkie");
        bAllAccess.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAllAccessActionPerformed(evt);
            }
        });

        bDeleteAccess.setText("Usuń akcesorium");
        bDeleteAccess.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bDeleteAccessActionPerformed(evt);
            }
        });

        jLabel19.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel19.setText("Dodaj:");

        jLabel20.setText("Nazwa:");

        jLabel22.setText("Ilość:");

        bAddMedicine1.setText("Dodaj akcesorium");
        bAddMedicine1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAddMedicine1ActionPerformed(evt);
            }
        });

        jLabel15.setText("Przeznaczenie:");

        jLabel17.setText("Przeznaczenie:");

        javax.swing.GroupLayout AccesoriesPanelLayout = new javax.swing.GroupLayout(AccesoriesPanel);
        AccesoriesPanel.setLayout(AccesoriesPanelLayout);
        AccesoriesPanelLayout.setHorizontalGroup(
            AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel13)
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addComponent(jLabel14)
                                .addGap(33, 33, 33)
                                .addComponent(tName1, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addComponent(jLabel16)
                                .addGap(12, 12, 12)
                                .addComponent(tCountFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(4, 4, 4)
                                .addComponent(jLabel18)
                                .addGap(4, 4, 4)
                                .addComponent(tCountTo, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addComponent(jLabel15)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(tSearchAccessPrzeznaczenie))
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addComponent(jLabel17)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(tAddAccesPrzeznaczenie, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel22)
                                    .addComponent(jLabel20))
                                .addGap(15, 15, 15)
                                .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(tAddAccessName, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)
                                    .addComponent(tAddAccessCount)))))
                    .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addComponent(bSearchAccess)
                                .addGap(6, 6, 6)
                                .addComponent(bAllAccess, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(bDeleteAccess, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel19))
                    .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(bAddMedicine1, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(spAccessories, javax.swing.GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
                .addContainerGap())
        );
        AccesoriesPanelLayout.setVerticalGroup(
            AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel14))
                            .addComponent(tName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tCountFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tCountTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(AccesoriesPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel16)
                                    .addComponent(jLabel18))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15)
                            .addComponent(tSearchAccessPrzeznaczenie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bSearchAccess)
                            .addComponent(bAllAccess))
                        .addGap(6, 6, 6)
                        .addComponent(bDeleteAccess)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel19)
                        .addGap(18, 18, 18)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel20)
                            .addComponent(tAddAccessName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddAccessCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17)
                            .addComponent(tAddAccesPrzeznaczenie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bAddMedicine1))
                    .addComponent(spAccessories, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(133, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout AccessoriesPanelLayout = new javax.swing.GroupLayout(AccessoriesPanel);
        AccessoriesPanel.setLayout(AccessoriesPanelLayout);
        AccessoriesPanelLayout.setHorizontalGroup(
            AccessoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccessoriesPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        AccessoriesPanelLayout.setVerticalGroup(
            AccessoriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccessoriesPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        AdminTabbedPane.addTab("Akcesoria", AccessoriesPanel);

        jLabel21.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel21.setText("Szukaj:");

        jLabel23.setText("Nazwa:");

        jLabel24.setText("Numer:    od:");

        jLabel25.setText("do:");

        bSearchOffice.setText("Szukaj");
        bSearchOffice.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchOfficeActionPerformed(evt);
            }
        });

        bAllOffices.setText("Pokaż wszystkie");
        bAllOffices.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAllOfficesActionPerformed(evt);
            }
        });

        bDeleteOffice.setText("Usuń gabinet");
        bDeleteOffice.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bDeleteOfficeActionPerformed(evt);
            }
        });

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel26.setText("Dodaj:");

        jLabel27.setText("Nazwa:");

        jLabel28.setText("Numer:");

        bAddOffice.setText("Dodaj gabinet");
        bAddOffice.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAddOfficeActionPerformed(evt);
            }
        });

        jLabel29.setText("Opis:");

        jLabel30.setText("Opis:");

        javax.swing.GroupLayout AccesoriesPanel1Layout = new javax.swing.GroupLayout(AccesoriesPanel1);
        AccesoriesPanel1.setLayout(AccesoriesPanel1Layout);
        AccesoriesPanel1Layout.setHorizontalGroup(
            AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel21)
                                    .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                        .addComponent(jLabel23)
                                        .addGap(33, 33, 33)
                                        .addComponent(tName2, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel24)
                                            .addComponent(jLabel29))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                                .addComponent(tNumberFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jLabel25)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(tNumberTo, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(tSearchOfficesDesc, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                        .addComponent(jLabel27)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(tAddOfficeName, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                        .addComponent(bSearchOffice)
                                        .addGap(6, 6, 6)
                                        .addComponent(bAllOffices, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(bDeleteOffice, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jLabel26))
                            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel28)
                                    .addComponent(jLabel30))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(tAddOfficeNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                                    .addComponent(tAddOfficeDesc))))
                        .addGap(12, 12, 12))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AccesoriesPanel1Layout.createSequentialGroup()
                        .addComponent(bAddOffice, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)))
                .addComponent(spOffice, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                .addContainerGap())
        );
        AccesoriesPanel1Layout.setVerticalGroup(
            AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel21)
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel1Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel23))
                            .addComponent(tName2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel24)
                                .addComponent(tNumberFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel25))
                            .addComponent(tNumberTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tSearchOfficesDesc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel29))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bSearchOffice)
                            .addComponent(bAllOffices))
                        .addGap(6, 6, 6)
                        .addComponent(bDeleteOffice)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel26)
                        .addGap(18, 18, 18)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel27)
                            .addComponent(tAddOfficeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddOfficeNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel28))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddOfficeDesc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel30))
                        .addGap(18, 18, 18)
                        .addComponent(bAddOffice))
                    .addComponent(spOffice, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(133, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout OfficesPanelLayout = new javax.swing.GroupLayout(OfficesPanel);
        OfficesPanel.setLayout(OfficesPanelLayout);
        OfficesPanelLayout.setHorizontalGroup(
            OfficesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OfficesPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        OfficesPanelLayout.setVerticalGroup(
            OfficesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OfficesPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        AdminTabbedPane.addTab("Gabinety", OfficesPanel);

        jLabel31.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel31.setText("Szukaj:");

        jLabel32.setText("Nazwa:");

        jLabel33.setText("Cena:    od:");

        jLabel34.setText("do:");

        bSearchVaccine.setText("Szukaj");
        bSearchVaccine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchVaccineActionPerformed(evt);
            }
        });

        bAllVaccine.setText("Pokaż wszystkie");
        bAllVaccine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAllVaccineActionPerformed(evt);
            }
        });

        bDeleteVaccine.setText("Usuń szczepionke");
        bDeleteVaccine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bDeleteVaccineActionPerformed(evt);
            }
        });

        jLabel35.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel35.setText("Dodaj:");

        jLabel36.setText("Nazwa:");

        jLabel37.setText("Cena:");

        bAddVaccine.setText("Dodaj szczepionke");
        bAddVaccine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAddVaccineActionPerformed(evt);
            }
        });

        jLabel38.setText("Opis:");

        jLabel39.setText("Opis:");

        javax.swing.GroupLayout AccesoriesPanel2Layout = new javax.swing.GroupLayout(AccesoriesPanel2);
        AccesoriesPanel2.setLayout(AccesoriesPanel2Layout);
        AccesoriesPanel2Layout.setHorizontalGroup(
            AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel31)
                            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel32)
                                .addGap(33, 33, 33)
                                .addComponent(tVaccineName, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel36)
                                    .addComponent(jLabel37)
                                    .addComponent(jLabel39))
                                .addGap(18, 18, 18)
                                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(tAddVaccineName, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
                                    .addComponent(tAddVaccinePrice)
                                    .addComponent(tAddVaccineDesc)))
                            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel33)
                                    .addComponent(jLabel38))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                        .addComponent(tVaccinePriceFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel34)
                                        .addGap(4, 4, 4)
                                        .addComponent(tVaccinePriceTo, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(tSearchVaccineDesc)))))
                    .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                .addComponent(bSearchVaccine)
                                .addGap(6, 6, 6)
                                .addComponent(bAllVaccine, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(bDeleteVaccine, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel35))
                    .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(bAddVaccine, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(11, 11, 11)
                .addComponent(spVaccine, javax.swing.GroupLayout.DEFAULT_SIZE, 549, Short.MAX_VALUE)
                .addContainerGap())
        );
        AccesoriesPanel2Layout.setVerticalGroup(
            AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel31)
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel32))
                            .addComponent(tVaccineName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tVaccinePriceFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tVaccinePriceTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(AccesoriesPanel2Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel33)
                                    .addComponent(jLabel34))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tSearchVaccineDesc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel38))
                        .addGap(18, 18, 18)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bSearchVaccine)
                            .addComponent(bAllVaccine))
                        .addGap(6, 6, 6)
                        .addComponent(bDeleteVaccine)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel35)
                        .addGap(15, 15, 15)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddVaccineName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel36))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddVaccinePrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel37))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddVaccineDesc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel39))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bAddVaccine))
                    .addComponent(spVaccine, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(133, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout VaccinesPanelLayout = new javax.swing.GroupLayout(VaccinesPanel);
        VaccinesPanel.setLayout(VaccinesPanelLayout);
        VaccinesPanelLayout.setHorizontalGroup(
            VaccinesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VaccinesPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        VaccinesPanelLayout.setVerticalGroup(
            VaccinesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VaccinesPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        AdminTabbedPane.addTab("Szczepionki", VaccinesPanel);

        jLabel40.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel40.setText("Szukaj:");

        jLabel41.setText("Nazwa:");

        jLabel42.setText("Adres:");

        bSearchProducers.setText("Szukaj");
        bSearchProducers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchProducersActionPerformed(evt);
            }
        });

        bAllProducers.setText("Pokaż wszystkich");
        bAllProducers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAllProducersActionPerformed(evt);
            }
        });

        bDeleteProducers.setText("Usuń producenta");
        bDeleteProducers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bDeleteProducersActionPerformed(evt);
            }
        });

        jLabel44.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel44.setText("Dodaj:");

        jLabel45.setText("Nazwa:");

        jLabel46.setText("Adres:");

        bAddProducers.setText("Dodaj producenta");
        bAddProducers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAddProducersActionPerformed(evt);
            }
        });

        jLabel47.setText("Telefon:");

        jLabel48.setText("Telefon:");

        javax.swing.GroupLayout AccesoriesPanel3Layout = new javax.swing.GroupLayout(AccesoriesPanel3);
        AccesoriesPanel3.setLayout(AccesoriesPanel3Layout);
        AccesoriesPanel3Layout.setHorizontalGroup(
            AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel40)
                                .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                                    .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel42)
                                        .addComponent(jLabel47)
                                        .addComponent(jLabel41))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(tProducersName, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(tProducersAdress, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addComponent(tProducersTelephone))))))
                        .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                                    .addComponent(bSearchProducers)
                                    .addGap(6, 6, 6)
                                    .addComponent(bAllProducers, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(bDeleteProducers, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel44))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AccesoriesPanel3Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jLabel45, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel46, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(tAddProducersName, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
                                .addComponent(tAddProducersAdress))))
                    .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                                .addComponent(jLabel48)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(tAddProducersTelephone, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(bAddProducers, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(spProducers, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)
                .addContainerGap())
        );
        AccesoriesPanel3Layout.setVerticalGroup(
            AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel40)
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel41))
                            .addComponent(tProducersName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tProducersAdress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(AccesoriesPanel3Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel42)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tProducersTelephone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel47))
                        .addGap(18, 18, 18)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bSearchProducers)
                            .addComponent(bAllProducers))
                        .addGap(6, 6, 6)
                        .addComponent(bDeleteProducers)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel44)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel45)
                            .addComponent(tAddProducersName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddProducersAdress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel46))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tAddProducersTelephone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel48))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(bAddProducers))
                    .addComponent(spProducers, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(133, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout MedicineProducersPanelLayout = new javax.swing.GroupLayout(MedicineProducersPanel);
        MedicineProducersPanel.setLayout(MedicineProducersPanelLayout);
        MedicineProducersPanelLayout.setHorizontalGroup(
            MedicineProducersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MedicineProducersPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        MedicineProducersPanelLayout.setVerticalGroup(
            MedicineProducersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MedicineProducersPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        AdminTabbedPane.addTab("Producenci Leków", MedicineProducersPanel);

        jLabel43.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel43.setText("Szukaj po osobie:");

        jLabel49.setText("Nazwisko:");

        jLabel50.setText("PESEL:");

        bSearchByPersonRecipe.setText("Szukaj po osobie");
        bSearchByPersonRecipe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchByPersonRecipeActionPerformed(evt);
            }
        });

        jLabel51.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel51.setText("Szukaj dla lekarza:");

        jLabel54.setText("Specjalizacja:");

        jLabel56.setText("Lekarz:");

        cbSpecRecipe.setModel(new javax.swing.DefaultComboBoxModel(Doctor.getAllSpecModel()));
        cbSpecRecipe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbSpecRecipeActionPerformed(evt);
            }
        });

        cbDoctorsRecipe.setModel(new javax.swing.DefaultComboBoxModel());

        bSearchByDocRecipe.setText("Szukaj dla lekarza");
        bSearchByDocRecipe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSearchByDocRecipeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout AccesoriesPanel4Layout = new javax.swing.GroupLayout(AccesoriesPanel4);
        AccesoriesPanel4.setLayout(AccesoriesPanel4Layout);
        AccesoriesPanel4Layout.setHorizontalGroup(
            AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel43)
                                .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                                    .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel50)
                                        .addComponent(jLabel49))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(tRecipesName, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(tRecipesPesel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addComponent(bSearchByPersonRecipe, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                                .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel54)
                                    .addComponent(jLabel56))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cbSpecRecipe, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(cbDoctorsRecipe, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addComponent(bSearchByDocRecipe, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(spRecipes, javax.swing.GroupLayout.DEFAULT_SIZE, 547, Short.MAX_VALUE)
                .addContainerGap())
        );
        AccesoriesPanel4Layout.setVerticalGroup(
            AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel43)
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel49))
                            .addComponent(tRecipesName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tRecipesPesel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(AccesoriesPanel4Layout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addComponent(jLabel50)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bSearchByPersonRecipe)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel51)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel54)
                            .addComponent(cbSpecRecipe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AccesoriesPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbDoctorsRecipe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel56))
                        .addGap(9, 9, 9)
                        .addComponent(bSearchByDocRecipe))
                    .addComponent(spRecipes, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(133, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout PrescriptionPanelLayout = new javax.swing.GroupLayout(PrescriptionPanel);
        PrescriptionPanel.setLayout(PrescriptionPanelLayout);
        PrescriptionPanelLayout.setHorizontalGroup(
            PrescriptionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PrescriptionPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        PrescriptionPanelLayout.setVerticalGroup(
            PrescriptionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PrescriptionPanelLayout.createSequentialGroup()
                .addComponent(AccesoriesPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        AdminTabbedPane.addTab("Recepty", PrescriptionPanel);

        jButton6.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jButton6.setText("KOPIA BAZY!");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout ControlPanelLayout = new javax.swing.GroupLayout(ControlPanel);
        ControlPanel.setLayout(ControlPanelLayout);
        ControlPanelLayout.setHorizontalGroup(
            ControlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ControlPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(509, Short.MAX_VALUE))
        );
        ControlPanelLayout.setVerticalGroup(
            ControlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ControlPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(463, Short.MAX_VALUE))
        );

        AdminTabbedPane.addTab("ControlPanel", null, ControlPanel, "");

        javax.swing.GroupLayout AdminPanelLayout = new javax.swing.GroupLayout(AdminPanel);
        AdminPanel.setLayout(AdminPanelLayout);
        AdminPanelLayout.setHorizontalGroup(
            AdminPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(AdminTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 800, Short.MAX_VALUE)
        );
        AdminPanelLayout.setVerticalGroup(
            AdminPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(AdminTabbedPane)
        );

        AuthorizationTabbedPane.addTab("Admin", AdminPanel);

        Panel_WizytaDomowa1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        Panel_WizytaDomowa1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Panel_WizytaDomowa1MouseClicked(evt);
            }
        });

        jLabel1.setText("Widok zwracajacy 10 najtanszych lekow");

        Stat1_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat1_wynik.setRequestFocusEnabled(false);

        Stat1_button.setText("Klik!");
        Stat1_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat1_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(Stat1_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Stat1_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(207, 593, Short.MAX_VALUE))))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(33, 33, 33)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Stat1_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Stat1_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE))
                .addContainerGap())
        );

        Panel_WizytaDomowa1.addTab("Stat 1", jPanel3);

        jLabel62.setText("Widok zwracajacy 10 najtanszych szczepionek");

        Stat2_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat2_wynik.setRequestFocusEnabled(false);

        Stat2_button.setText("Klik!");
        Stat2_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat2_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel62)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(Stat2_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Stat2_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 679, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel62)
                .addGap(33, 33, 33)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Stat2_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addComponent(Stat2_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE))
                .addContainerGap())
        );

        Panel_WizytaDomowa1.addTab("Stat 2", jPanel4);

        jLabel64.setText(" Widok zwracajacy srednia cene leku dla producenta");

        Stat3_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat3_wynik.setRequestFocusEnabled(false);

        Stat3_button.setText("Klik!");
        Stat3_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat3_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel64)
                        .addGap(0, 525, Short.MAX_VALUE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(Stat3_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Stat3_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel64)
                .addGap(33, 33, 33)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Stat3_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addComponent(Stat3_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE))
                .addContainerGap())
        );

        Panel_WizytaDomowa1.addTab("Stat 3", jPanel5);

        jLabel68.setText(" Widok zwracajacy ilosc pacjentow dla doktora");

        Stat4_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat4_wynik.setRequestFocusEnabled(false);

        Stat4_button.setText("Klik!");
        Stat4_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat4_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel68)
                        .addGap(0, 553, Short.MAX_VALUE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(Stat4_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Stat4_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel68)
                .addGap(33, 33, 33)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Stat4_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addComponent(Stat4_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE))
                .addContainerGap())
        );

        Panel_WizytaDomowa1.addTab("Stat 4", jPanel6);

        jLabel71.setText("Widok zwracajacy leki z przedzialu ceny");

        Stat5_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat5_wynik.setRequestFocusEnabled(false);

        Stat5_b1.setText("0");

        Stat5_b2.setText("10");

        jLabel72.setText("-");

        jLabel112.setText("Cena");

        Stat5_button.setText("Klik!");
        Stat5_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat5_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel71)
                        .addGap(137, 137, 137)
                        .addComponent(jLabel112)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Stat5_b1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(jLabel72)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Stat5_b2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 250, Short.MAX_VALUE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(Stat5_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Stat5_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel71)
                        .addGap(33, 33, 33))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Stat5_b1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Stat5_b2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel72)
                            .addComponent(jLabel112))
                        .addGap(18, 18, 18)))
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Stat5_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addComponent(Stat5_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE))
                .addContainerGap())
        );

        Panel_WizytaDomowa1.addTab("Stat 5", jPanel7);

        jLabel145.setText("Widok zwracajacy tabele statystyki dla przychodni");

        Stat6_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat6_wynik.setRequestFocusEnabled(false);

        Stat6_button.setText("Klik!");
        Stat6_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat6_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Stat6_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(745, Short.MAX_VALUE))
            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel8Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel8Layout.createSequentialGroup()
                            .addComponent(jLabel145)
                            .addGap(582, 582, 582))
                        .addGroup(jPanel8Layout.createSequentialGroup()
                            .addGap(96, 96, 96)
                            .addComponent(Stat6_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap()))))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addComponent(Stat6_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel8Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel145)
                    .addGap(33, 33, 33)
                    .addComponent(Stat6_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        Panel_WizytaDomowa1.addTab("Stat 6", jPanel8);

        jLabel146.setText("Widok zwracajacy ranking pacjentow najczesciej odwiedzajacych przychodnie");

        Stat7_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat7_wynik.setRequestFocusEnabled(false);

        Stat7_button.setText("Klik!");
        Stat7_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat7_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Stat7_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(876, Short.MAX_VALUE))
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addComponent(jLabel146)
                            .addGap(582, 582, 582))
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addGap(96, 96, 96)
                            .addComponent(Stat7_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap()))))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addComponent(Stat7_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel146)
                    .addGap(33, 33, 33)
                    .addComponent(Stat7_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        Panel_WizytaDomowa1.addTab("Stat 7", jPanel9);

        jLabel147.setText("Widok zwracajacy ilosc odwiedzin w poszczegolnych dniach tygodnia");

        Stat8_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat8_wynik.setRequestFocusEnabled(false);

        Stat8_button.setText("Klik!");
        Stat8_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat8_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Stat8_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(831, Short.MAX_VALUE))
            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel10Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel10Layout.createSequentialGroup()
                            .addComponent(jLabel147)
                            .addGap(582, 582, 582))
                        .addGroup(jPanel10Layout.createSequentialGroup()
                            .addGap(96, 96, 96)
                            .addComponent(Stat8_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap()))))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addComponent(Stat8_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel10Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel147)
                    .addGap(33, 33, 33)
                    .addComponent(Stat8_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        Panel_WizytaDomowa1.addTab("Stat 8", jPanel10);

        jLabel148.setText("Widok zwracający ilość odwiedzin(poszczególnych typów) o podanej dacie");

        Stat9_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat9_wynik.setRequestFocusEnabled(false);

        jLabel150.setText("Data (yyyy-mm-dd)");

        Stat9_data.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat9_dataActionPerformed(evt);
            }
        });

        Stat9_button.setText("Klik!");
        Stat9_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat9_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(Stat9_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(Stat9_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jLabel148)
                        .addGap(32, 32, 32)
                        .addComponent(jLabel150)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Stat9_data, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 76, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel148)
                    .addComponent(jLabel150)
                    .addComponent(Stat9_data, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Stat9_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addComponent(Stat9_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE))
                .addContainerGap())
        );

        Panel_WizytaDomowa1.addTab("Stat 9", jPanel11);

        jLabel149.setText("Widok zwracajacy ranking ilosci przyjetych recept przez pacjenta");

        Stat10_wynik.setMaximumSize(new java.awt.Dimension(250, 360));
        Stat10_wynik.setRequestFocusEnabled(false);

        Stat10_button.setText("Klik!");
        Stat10_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Stat10_buttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Stat10_button, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(815, Short.MAX_VALUE))
            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel12Layout.createSequentialGroup()
                            .addComponent(jLabel149)
                            .addGap(582, 582, 582))
                        .addGroup(jPanel12Layout.createSequentialGroup()
                            .addGap(96, 96, 96)
                            .addComponent(Stat10_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap()))))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addComponent(Stat10_button, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel149)
                    .addGap(33, 33, 33)
                    .addComponent(Stat10_wynik, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        Panel_WizytaDomowa1.addTab("Stat 10", jPanel12);

        javax.swing.GroupLayout StatsPanelLayout = new javax.swing.GroupLayout(StatsPanel);
        StatsPanel.setLayout(StatsPanelLayout);
        StatsPanelLayout.setHorizontalGroup(
            StatsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 800, Short.MAX_VALUE)
            .addGroup(StatsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(StatsPanelLayout.createSequentialGroup()
                    .addGap(0, 0, 0)
                    .addComponent(Panel_WizytaDomowa1, javax.swing.GroupLayout.PREFERRED_SIZE, 800, Short.MAX_VALUE)
                    .addGap(0, 0, 0)))
        );
        StatsPanelLayout.setVerticalGroup(
            StatsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 600, Short.MAX_VALUE)
            .addGroup(StatsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(StatsPanelLayout.createSequentialGroup()
                    .addGap(0, 0, 0)
                    .addComponent(Panel_WizytaDomowa1)
                    .addGap(0, 0, 0)))
        );

        AuthorizationTabbedPane.addTab("Statystyki", StatsPanel);

        Panel_WizytaDomowa.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        Panel_WizytaDomowa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                Panel_WizytaDomowaMouseClicked(evt);
            }
        });

        pacjent_nadchodzace_terminy_aktualizuj.setText("Aktualizuj");
        pacjent_nadchodzace_terminy_aktualizuj.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_nadchodzace_terminy_aktualizujActionPerformed(evt);
            }
        });

        jLabel58.setText("Nadchodzace wizyty w przychodni:");

        pacjent_nadchodzace_terminy_1.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_nadchodzace_terminy_1.setRequestFocusEnabled(false);

        pacjent_nadchodzace_terminy_2.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_nadchodzace_terminy_2.setRequestFocusEnabled(false);

        jLabel65.setText("Nadchodzące wizyty domowe:");

        pacjent_nadchodzace_terminy_4.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_nadchodzace_terminy_4.setRequestFocusEnabled(false);

        pacjent_nadchodzace_terminy_3.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_nadchodzace_terminy_3.setRequestFocusEnabled(false);

        jLabel66.setText("Nadchodzace badania USG:");

        jLabel67.setText("Nadchodzace terminy szczepien:");

        pacjent_nadchodzace_terminy_5.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_nadchodzace_terminy_5.setRequestFocusEnabled(false);

        jLabel69.setText("Nadchodzące terminy RTG:");

        jLabel70.setText("Nadchodzące terminy badan prostych:");

        pacjent_nadchodzace_terminy_6.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_nadchodzace_terminy_6.setRequestFocusEnabled(false);

        javax.swing.GroupLayout UsersPanel9Layout = new javax.swing.GroupLayout(UsersPanel9);
        UsersPanel9.setLayout(UsersPanel9Layout);
        UsersPanel9Layout.setHorizontalGroup(
            UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pacjent_nadchodzace_terminy_aktualizuj)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel58)
                    .addComponent(pacjent_nadchodzace_terminy_1, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel67)
                    .addComponent(pacjent_nadchodzace_terminy_3, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel69)
                    .addComponent(pacjent_nadchodzace_terminy_5, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                .addGroup(UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel65)
                    .addComponent(pacjent_nadchodzace_terminy_2, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel66)
                    .addComponent(pacjent_nadchodzace_terminy_4, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel70)
                    .addComponent(pacjent_nadchodzace_terminy_6, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(56, 56, 56))
        );
        UsersPanel9Layout.setVerticalGroup(
            UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel9Layout.createSequentialGroup()
                .addContainerGap(16, Short.MAX_VALUE)
                .addGroup(UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pacjent_nadchodzace_terminy_aktualizuj, javax.swing.GroupLayout.PREFERRED_SIZE, 372, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(UsersPanel9Layout.createSequentialGroup()
                        .addGroup(UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(UsersPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel58)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pacjent_nadchodzace_terminy_1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel65)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pacjent_nadchodzace_terminy_2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(UsersPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel67)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pacjent_nadchodzace_terminy_3, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel66)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pacjent_nadchodzace_terminy_4, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel69)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pacjent_nadchodzace_terminy_5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel70)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pacjent_nadchodzace_terminy_6, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addGap(187, 187, 187))
        );

        Panel_WizytaDomowa.addTab("Nadchodzace terminy", UsersPanel9);

        pacjent_historia_wizyt_lista.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_historia_wizyt_lista.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj.setText("Aktualizuj histrorie wizyt");
        pacjent_historia_wizyt_aktualizuj.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizujActionPerformed(evt);
            }
        });

        pacjent_historia_wizyt_recepty.setMaximumSize(new java.awt.Dimension(50, 50));

        jLabel107.setText("Recepty powiazane z dana wizyta:");

        jLabel108.setText("Szczegoly recepty:");

        jLabel53.setText("Rozpoznanie choroby:");

        jLabel55.setText("Dalsze zalecenia:");

        pacjent_historia_wizyty_rozpoznanie.setEditable(false);
        pacjent_historia_wizyty_rozpoznanie.setColumns(20);
        pacjent_historia_wizyty_rozpoznanie.setRows(5);
        pacjent_historia_wizyty_rozpoznanie.setMaximumSize(new java.awt.Dimension(210, 115));
        jScrollPane1.setViewportView(pacjent_historia_wizyty_rozpoznanie);

        pacjent_historia_wizyty_zalecenia.setEditable(false);
        pacjent_historia_wizyty_zalecenia.setColumns(20);
        pacjent_historia_wizyty_zalecenia.setRows(5);
        pacjent_historia_wizyty_zalecenia.setMaximumSize(new java.awt.Dimension(210, 115));
        jScrollPane2.setViewportView(pacjent_historia_wizyty_zalecenia);

        pacjent_historia_wizyt_recepty_szczegoly.setEditable(false);
        pacjent_historia_wizyt_recepty_szczegoly.setColumns(20);
        pacjent_historia_wizyt_recepty_szczegoly.setRows(9);
        pacjent_historia_wizyt_recepty_szczegoly.setMaximumSize(new java.awt.Dimension(50, 50));
        jScrollPane3.setViewportView(pacjent_historia_wizyt_recepty_szczegoly);

        javax.swing.GroupLayout UsersPanel1Layout = new javax.swing.GroupLayout(UsersPanel1);
        UsersPanel1.setLayout(UsersPanel1Layout);
        UsersPanel1Layout.setHorizontalGroup(
            UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pacjent_historia_wizyt_lista, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pacjent_historia_wizyt_aktualizuj))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel1Layout.createSequentialGroup()
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel53))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel55)
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(jScrollPane2)))
                    .addGroup(UsersPanel1Layout.createSequentialGroup()
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pacjent_historia_wizyt_recepty, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(UsersPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel107)
                                .addGap(0, 94, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel108))))
                .addContainerGap())
        );
        UsersPanel1Layout.setVerticalGroup(
            UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel1Layout.createSequentialGroup()
                .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel1Layout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel55)
                            .addComponent(jLabel53, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(2, 2, 2))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pacjent_historia_wizyt_aktualizuj)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel1Layout.createSequentialGroup()
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel107)
                            .addComponent(jLabel108, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pacjent_historia_wizyt_recepty, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(pacjent_historia_wizyt_lista, javax.swing.GroupLayout.PREFERRED_SIZE, 328, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        Panel_WizytaDomowa.addTab("Historia wizyt", UsersPanel1);

        prev_wszyscylekarze2.setText("Poprzedni tydzień");
        prev_wszyscylekarze2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_wszyscylekarze2ActionPerformed(evt);
            }
        });

        date_wizytydomowe.setText("jLabel57");

        next_wszyscylekarze2.setText("Nastepny tydzień");
        next_wszyscylekarze2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_wszyscylekarze2ActionPerformed(evt);
            }
        });

        jButton9.setText("Odswiez mnie");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanel8Layout = new javax.swing.GroupLayout(UsersPanel8);
        UsersPanel8.setLayout(UsersPanel8Layout);
        UsersPanel8Layout.setHorizontalGroup(
            UsersPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(scCalendar_wizytydomowe)
                    .addGroup(UsersPanel8Layout.createSequentialGroup()
                        .addComponent(jButton9)
                        .addGap(72, 72, 72)
                        .addComponent(prev_wszyscylekarze2, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(date_wizytydomowe)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(next_wszyscylekarze2, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                        .addGap(200, 200, 200)))
                .addContainerGap())
        );
        UsersPanel8Layout.setVerticalGroup(
            UsersPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_wszyscylekarze2)
                    .addComponent(next_wszyscylekarze2)
                    .addComponent(date_wizytydomowe)
                    .addComponent(jButton9))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_wizytydomowe, javax.swing.GroupLayout.PREFERRED_SIZE, 436, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(99, Short.MAX_VALUE))
        );

        Panel_WizytaDomowa.addTab("Zamow wizyte domowa", UsersPanel8);

        PacjentPanel_1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        UsersPanel3.setMaximumSize(new java.awt.Dimension(0, 0));

        pacjent_wyniki_badan_moczu.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_wyniki_badan_moczu.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj4.setText("Aktualizuj listę");
        pacjent_historia_wizyt_aktualizuj4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizuj4ActionPerformed(evt);
            }
        });

        ob1.setEditable(false);
        ob1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ob1ActionPerformed(evt);
            }
        });

        jTextField3.setEditable(false);
        jTextField3.setText("900");
        jTextField3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField3ActionPerformed(evt);
            }
        });

        jLabel57.setText("Twój wynik:");

        jLabel59.setText("Norma od:");

        jLabel60.setText("Norma do:");

        jTextField4.setEditable(false);
        jTextField4.setText("1800");
        jTextField4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField4ActionPerformed(evt);
            }
        });

        jLabel61.setText("Ciężar właściwy:");

        ob2.setEditable(false);

        jTextField6.setEditable(false);
        jTextField6.setText("1,015");

        jTextField7.setEditable(false);
        jTextField7.setText("1,022");

        jLabel74.setText("pH:");

        ob3.setEditable(false);
        ob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ob3ActionPerformed(evt);
            }
        });

        jTextField9.setEditable(false);
        jTextField9.setText("5,0");
        jTextField9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField9ActionPerformed(evt);
            }
        });

        jTextField10.setEditable(false);
        jTextField10.setText("6,0");
        jTextField10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField10ActionPerformed(evt);
            }
        });

        jLabel75.setText("Bialko:");

        ob4.setEditable(false);

        jTextField12.setEditable(false);
        jTextField12.setText("0");

        jTextField13.setEditable(false);
        jTextField13.setText("250");

        jLabel76.setText("Glukoza:");

        ob5.setEditable(false);

        jTextField15.setEditable(false);
        jTextField15.setText("0");

        jTextField16.setEditable(false);
        jTextField16.setText("0");

        jLabel77.setText("Ciała ketonowe:");

        ob6.setEditable(false);

        jTextField18.setEditable(false);
        jTextField18.setText("0");

        jTextField19.setEditable(false);
        jTextField19.setText("0");

        jLabel78.setText("Bilirubina:");

        ob7.setEditable(false);

        jTextField21.setEditable(false);
        jTextField21.setText("0");

        jTextField22.setEditable(false);
        jTextField22.setText("0");

        jLabel79.setText("Urobilinogen:");

        ob8.setEditable(false);

        jTextField24.setEditable(false);
        jTextField24.setText("0");

        jTextField25.setEditable(false);
        jTextField25.setText("1");

        jLabel80.setText("Azotyny:");

        ob9.setEditable(false);

        jTextField27.setEditable(false);
        jTextField27.setText("0");

        jTextField28.setEditable(false);
        jTextField28.setText("0");

        jLabel81.setText("Erytrocyty");

        ob10.setEditable(false);

        jTextField30.setEditable(false);
        jTextField30.setText("3");

        jTextField31.setEditable(false);
        jTextField31.setText("4");

        jLabel82.setText("Leukocyty:");

        ob11.setEditable(false);

        jTextField33.setEditable(false);
        jTextField33.setText("4");

        jTextField34.setEditable(false);
        jTextField34.setText("5");

        jLabel83.setText("Nabłonki:");

        ob12.setEditable(false);

        jTextField36.setEditable(false);
        jTextField36.setText("0");

        jTextField37.setEditable(false);
        jTextField37.setText("0");
        jTextField37.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField37ActionPerformed(evt);
            }
        });

        jLabel84.setText("Objętość moczu:");

        jLabel85.setText("Wałeczki:");

        ob13.setEditable(false);
        ob13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ob13ActionPerformed(evt);
            }
        });

        jTextField45.setEditable(false);
        jTextField45.setText("3");

        jTextField46.setEditable(false);
        jTextField46.setText("5");
        jTextField46.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField46ActionPerformed(evt);
            }
        });

        jLabel87.setText("Kryształy:");

        ob14.setEditable(false);

        jTextField48.setEditable(false);
        jTextField48.setText("0");

        jTextField49.setEditable(false);
        jTextField49.setText("0");

        jLabel73.setText("ml/dobę");

        jLabel86.setText("g/ml");

        jLabel88.setText("mg/dobę");

        jLabel89.setText("mg/dobę");

        jLabel90.setText("wpw");

        jLabel91.setText("wpw");

        jLabel92.setText("wpw");

        javax.swing.GroupLayout UsersPanel3Layout = new javax.swing.GroupLayout(UsersPanel3);
        UsersPanel3.setLayout(UsersPanel3Layout);
        UsersPanel3Layout.setHorizontalGroup(
            UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel3Layout.createSequentialGroup()
                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel3Layout.createSequentialGroup()
                        .addComponent(pacjent_wyniki_badan_moczu, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel61, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                            .addComponent(jLabel74)
                            .addComponent(jLabel75)
                            .addComponent(jLabel76)
                            .addComponent(jLabel77)
                            .addComponent(jLabel78)
                            .addComponent(jLabel79)
                            .addComponent(jLabel80)
                            .addComponent(jLabel81)
                            .addComponent(jLabel82)
                            .addComponent(jLabel84, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel85)
                            .addComponent(jLabel83)
                            .addComponent(jLabel87)))
                    .addComponent(pacjent_historia_wizyt_aktualizuj4, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(ob2)
                    .addComponent(ob3)
                    .addComponent(ob1)
                    .addComponent(jLabel57, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)
                    .addComponent(ob4)
                    .addComponent(ob5)
                    .addComponent(ob6)
                    .addComponent(ob7)
                    .addComponent(ob8)
                    .addComponent(ob9)
                    .addComponent(ob10)
                    .addComponent(ob11)
                    .addComponent(ob12)
                    .addComponent(ob13)
                    .addComponent(ob14))
                .addGap(18, 18, 18)
                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel3Layout.createSequentialGroup()
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField15)
                            .addComponent(jTextField18)
                            .addComponent(jTextField21)
                            .addComponent(jTextField24)
                            .addComponent(jTextField27)
                            .addComponent(jTextField30)
                            .addComponent(jTextField33)
                            .addComponent(jLabel59, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
                            .addComponent(jTextField36)
                            .addComponent(jTextField45)
                            .addComponent(jTextField48))
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel3Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanel3Layout.createSequentialGroup()
                                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(UsersPanel3Layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jTextField22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                                            .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(jTextField25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                                                .addComponent(jTextField28, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField31, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField34, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField37, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField46, javax.swing.GroupLayout.Alignment.LEADING))
                                            .addComponent(jTextField49, javax.swing.GroupLayout.Alignment.LEADING))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel89)
                                    .addComponent(jLabel90)
                                    .addComponent(jLabel91)
                                    .addComponent(jLabel92)))
                            .addGroup(UsersPanel3Layout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(UsersPanel3Layout.createSequentialGroup()
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField12, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField9, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
                            .addComponent(jTextField3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField4)
                            .addComponent(jTextField13, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField10, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel88, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel86)
                                .addComponent(jLabel73)))))
                .addContainerGap(154, Short.MAX_VALUE))
        );
        UsersPanel3Layout.setVerticalGroup(
            UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel3Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(pacjent_historia_wizyt_aktualizuj4)
                    .addGroup(UsersPanel3Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel57, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel59)
                            .addComponent(jLabel60))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel3Layout.createSequentialGroup()
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ob1)
                            .addComponent(jTextField3)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel84)
                            .addComponent(jLabel73))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel61)
                            .addComponent(ob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel86))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel74)
                            .addComponent(ob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel75)
                            .addComponent(ob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel88))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel76)
                            .addComponent(ob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField19, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel77)
                                .addComponent(ob6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel78)
                            .addComponent(ob7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel79)
                            .addComponent(ob8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel89))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel80)
                            .addComponent(ob9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel81)
                            .addComponent(ob10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel90))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel82)
                            .addComponent(ob11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel91))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel83)
                            .addComponent(ob12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel85)
                            .addComponent(ob13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField45, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField46, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel92))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel87)
                            .addComponent(ob14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField49, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(pacjent_wyniki_badan_moczu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(336, 336, 336))
        );

        PacjentPanel_1.addTab("Badanie moczu", UsersPanel3);

        UsersPanel6.setMaximumSize(new java.awt.Dimension(0, 0));

        pacjent_wyniki_lipidogram.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_wyniki_lipidogram.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj7.setText("Aktualizuj listę");
        pacjent_historia_wizyt_aktualizuj7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizuj7ActionPerformed(evt);
            }
        });

        lipi_ob1.setEditable(false);
        lipi_ob1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lipi_ob1ActionPerformed(evt);
            }
        });

        jTextField40.setEditable(false);
        jTextField40.setText("150");
        jTextField40.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField40ActionPerformed(evt);
            }
        });

        jLabel93.setText("Twój wynik:");

        jLabel94.setText("Norma od:");

        jLabel95.setText("Norma do:");

        jTextField41.setEditable(false);
        jTextField41.setText("200");
        jTextField41.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField41ActionPerformed(evt);
            }
        });

        jLabel96.setText("Triglicerydy:");

        lipi_ob2.setEditable(false);

        jTextField43.setEditable(false);
        jTextField43.setText("0");

        jTextField44.setEditable(false);
        jTextField44.setText("150");

        jLabel97.setText("LDL-cholesterol:");

        lipi_ob3.setEditable(false);
        lipi_ob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lipi_ob3ActionPerformed(evt);
            }
        });

        jTextField51.setEditable(false);
        jTextField51.setText("0");
        jTextField51.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField51ActionPerformed(evt);
            }
        });

        jTextField52.setEditable(false);
        jTextField52.setText("135");
        jTextField52.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField52ActionPerformed(evt);
            }
        });

        jLabel98.setText("HDL-cholesterol:");

        lipi_ob4.setEditable(false);

        jTextField54.setEditable(false);
        jTextField54.setText("35 / 40");

        jTextField55.setEditable(false);
        jTextField55.setText("70 / 80");

        jLabel99.setText("Lipoproteina A:");

        lipi_ob5.setEditable(false);

        jTextField57.setEditable(false);
        jTextField57.setText("0");

        jTextField58.setEditable(false);
        jTextField58.setText("150");

        jLabel109.setText("Cholesterol całkowity:");

        jLabel113.setText("mg/dl");

        jLabel114.setText("mg/dl");

        jLabel115.setText("mg/dl (K/M)");

        jLabel100.setText("mg/dl");

        jLabel101.setText("mg/dl");

        javax.swing.GroupLayout UsersPanel6Layout = new javax.swing.GroupLayout(UsersPanel6);
        UsersPanel6.setLayout(UsersPanel6Layout);
        UsersPanel6Layout.setHorizontalGroup(
            UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel6Layout.createSequentialGroup()
                .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel6Layout.createSequentialGroup()
                        .addComponent(pacjent_wyniki_lipidogram, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel96, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel97)
                            .addComponent(jLabel98)
                            .addComponent(jLabel99)
                            .addComponent(jLabel109, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(pacjent_historia_wizyt_aktualizuj7, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(lipi_ob2)
                    .addComponent(lipi_ob3)
                    .addComponent(lipi_ob1)
                    .addComponent(jLabel93, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)
                    .addComponent(lipi_ob4)
                    .addComponent(lipi_ob5))
                .addGap(18, 18, 18)
                .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel6Layout.createSequentialGroup()
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField57)
                            .addComponent(jLabel94, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel6Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel95, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanel6Layout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addComponent(jTextField58, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel101))))
                    .addGroup(UsersPanel6Layout.createSequentialGroup()
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField54, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField51, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField43, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
                            .addComponent(jTextField40))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField41)
                            .addComponent(jTextField55, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField52, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField44, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel115, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel113)
                            .addComponent(jLabel114)
                            .addComponent(jLabel100))))
                .addContainerGap(141, Short.MAX_VALUE))
        );
        UsersPanel6Layout.setVerticalGroup(
            UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel6Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(pacjent_historia_wizyt_aktualizuj7)
                    .addGroup(UsersPanel6Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel93, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel94)
                            .addComponent(jLabel95))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel6Layout.createSequentialGroup()
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lipi_ob1)
                            .addComponent(jTextField40)
                            .addComponent(jTextField41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel109)
                            .addComponent(jLabel113))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel96)
                            .addComponent(lipi_ob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField44, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel114))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel97)
                            .addComponent(lipi_ob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField51, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField52, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel100))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel98)
                            .addComponent(lipi_ob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel115))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel99)
                            .addComponent(lipi_ob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField58, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel101))
                        .addGap(225, 225, 225))
                    .addComponent(pacjent_wyniki_lipidogram, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(336, 336, 336))
        );

        PacjentPanel_1.addTab("Lipidogram", UsersPanel6);

        pacjent_wyniki_morfologia.setMaximumSize(new java.awt.Dimension(250, 360));
        pacjent_wyniki_morfologia.setRequestFocusEnabled(false);

        pacjent_historia_wizyt_aktualizuj8.setText("Aktualizuj listę");
        pacjent_historia_wizyt_aktualizuj8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pacjent_historia_wizyt_aktualizuj8ActionPerformed(evt);
            }
        });

        morfo_ob1.setEditable(false);
        morfo_ob1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                morfo_ob1ActionPerformed(evt);
            }
        });

        jTextField60.setEditable(false);
        jTextField60.setText("4,2 / 4,7");
        jTextField60.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField60ActionPerformed(evt);
            }
        });

        jLabel102.setText("Twój wynik:");

        jLabel103.setText("Norma od:");

        jLabel104.setText("Norma do:");

        jTextField61.setEditable(false);
        jTextField61.setText("5,4 / 6,2");
        jTextField61.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField61ActionPerformed(evt);
            }
        });

        jLabel105.setText("Retykulocyty (RET):");

        morfo_ob2.setEditable(false);

        jTextField63.setEditable(false);
        jTextField63.setText("5");

        jTextField64.setEditable(false);
        jTextField64.setText("15");
        jTextField64.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField64ActionPerformed(evt);
            }
        });

        jLabel106.setText("MCV:");

        morfo_ob3.setEditable(false);
        morfo_ob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                morfo_ob3ActionPerformed(evt);
            }
        });

        jTextField66.setEditable(false);
        jTextField66.setText("81 / 80");
        jTextField66.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField66ActionPerformed(evt);
            }
        });

        jTextField67.setEditable(false);
        jTextField67.setText("99 / 94");
        jTextField67.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField67ActionPerformed(evt);
            }
        });

        jLabel110.setText("MCH:");

        morfo_ob4.setEditable(false);

        jTextField69.setEditable(false);
        jTextField69.setText("27 / 27");
        jTextField69.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField69ActionPerformed(evt);
            }
        });

        jTextField70.setEditable(false);
        jTextField70.setText("31 / 34");

        jLabel111.setText("MCHC:");

        morfo_ob5.setEditable(false);

        jTextField72.setEditable(false);
        jTextField72.setText("33");

        jTextField73.setEditable(false);
        jTextField73.setText("37");

        jLabel116.setText("Hemoglobina:");

        morfo_ob6.setEditable(false);

        jTextField75.setEditable(false);
        jTextField75.setText("12 / 14");

        jTextField76.setEditable(false);
        jTextField76.setText("16 / 18");

        jLabel117.setText("Hematokryt (HCT):");

        morfo_ob7.setEditable(false);

        jTextField78.setEditable(false);
        jTextField78.setText("37 / 42");

        jTextField79.setEditable(false);
        jTextField79.setText("47 / 52");
        jTextField79.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField79ActionPerformed(evt);
            }
        });

        jLabel118.setText("Leukocyty (WBC):");

        morfo_ob8.setEditable(false);

        jTextField81.setEditable(false);
        jTextField81.setText("4");

        jTextField82.setEditable(false);
        jTextField82.setText("10");
        jTextField82.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField82ActionPerformed(evt);
            }
        });

        jLabel119.setText("Granulocyty:");

        morfo_ob9.setEditable(false);

        jTextField84.setEditable(false);

        jTextField85.setEditable(false);

        jLabel120.setText("Neutrofile (NEUT):");

        morfo_ob10.setEditable(false);

        jTextField87.setEditable(false);
        jTextField87.setText("50");

        jTextField88.setEditable(false);
        jTextField88.setText("70");

        jLabel121.setText("Eozynofile (EOS):");

        morfo_ob11.setEditable(false);

        jTextField90.setEditable(false);
        jTextField90.setText("0,1");

        jTextField91.setEditable(false);
        jTextField91.setText("0,3");

        jLabel122.setText("Bazofile (BASO):");

        morfo_ob12.setEditable(false);

        jTextField93.setEditable(false);

        jTextField94.setEditable(false);
        jTextField94.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField94ActionPerformed(evt);
            }
        });

        jLabel123.setText("Erytrocyty:");

        jLabel124.setText("Limfocyty (LYMPH):");

        morfo_ob13.setEditable(false);
        morfo_ob13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                morfo_ob13ActionPerformed(evt);
            }
        });

        jTextField96.setEditable(false);
        jTextField96.setText("2,5");
        jTextField96.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField96ActionPerformed(evt);
            }
        });

        jTextField97.setEditable(false);
        jTextField97.setText("4,5");
        jTextField97.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField97ActionPerformed(evt);
            }
        });

        jLabel125.setText("Limfocyty B:");

        morfo_ob14.setEditable(false);

        jTextField99.setEditable(false);

        jTextField100.setEditable(false);

        jLabel126.setText("Limfocyty T:");

        morfo_ob15.setEditable(false);

        jTextField102.setEditable(false);

        jTextField103.setEditable(false);

        jLabel127.setText("NK:");

        morfo_ob16.setEditable(false);

        jTextField105.setEditable(false);

        jTextField106.setEditable(false);
        jTextField106.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField106ActionPerformed(evt);
            }
        });

        jLabel128.setText("Monocyty (MONO):");

        morfo_ob17.setEditable(false);

        jTextField108.setEditable(false);
        jTextField108.setText("0,3");
        jTextField108.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField108ActionPerformed(evt);
            }
        });

        jTextField109.setEditable(false);
        jTextField109.setText("0,8");

        jLabel129.setText("Trombocyty (PLT):");

        morfo_ob18.setEditable(false);
        morfo_ob18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                morfo_ob18ActionPerformed(evt);
            }
        });

        jTextField111.setEditable(false);
        jTextField111.setText("150");

        jTextField112.setEditable(false);
        jTextField112.setText("400");

        jLabel130.setText("mln/ul (K/M)");

        jLabel131.setText("‰");

        jLabel132.setText("fl (K/M)");

        jLabel133.setText("pg (K/M)");

        jLabel134.setText("g/dl");

        jLabel135.setText("g/dl (K/M)");

        jLabel136.setText("% (K/M)");

        jLabel137.setText("tys/µl");

        jLabel138.setText("tys/µl");

        jLabel139.setText("K/µl");

        jLabel140.setText("tys/µl");

        jLabel141.setText("tys./l’l");

        jLabel142.setText("tys/µl");

        javax.swing.GroupLayout UsersPanel16Layout = new javax.swing.GroupLayout(UsersPanel16);
        UsersPanel16.setLayout(UsersPanel16Layout);
        UsersPanel16Layout.setHorizontalGroup(
            UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel16Layout.createSequentialGroup()
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel16Layout.createSequentialGroup()
                        .addComponent(pacjent_wyniki_morfologia, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel106)
                            .addComponent(jLabel110)
                            .addComponent(jLabel111)
                            .addComponent(jLabel116)
                            .addComponent(jLabel117)
                            .addComponent(jLabel118)
                            .addComponent(jLabel119)
                            .addComponent(jLabel120)
                            .addComponent(jLabel121)
                            .addComponent(jLabel123, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel124)
                            .addComponent(jLabel122)
                            .addComponent(jLabel125)
                            .addComponent(jLabel105, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel126)
                            .addComponent(jLabel127)
                            .addComponent(jLabel128)
                            .addComponent(jLabel129)))
                    .addComponent(pacjent_historia_wizyt_aktualizuj8, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(morfo_ob2)
                    .addComponent(morfo_ob3)
                    .addComponent(morfo_ob1)
                    .addComponent(jLabel102, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)
                    .addComponent(morfo_ob4)
                    .addComponent(morfo_ob5)
                    .addComponent(morfo_ob6)
                    .addComponent(morfo_ob7)
                    .addComponent(morfo_ob8)
                    .addComponent(morfo_ob9)
                    .addComponent(morfo_ob10)
                    .addComponent(morfo_ob11)
                    .addComponent(morfo_ob12)
                    .addComponent(morfo_ob13)
                    .addComponent(morfo_ob14)
                    .addComponent(morfo_ob15)
                    .addComponent(morfo_ob16)
                    .addComponent(morfo_ob17)
                    .addComponent(morfo_ob18))
                .addGap(18, 18, 18)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel16Layout.createSequentialGroup()
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField69, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField66, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField63, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
                            .addComponent(jTextField60))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField61)
                            .addComponent(jTextField70, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField67, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField64, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel132)
                            .addComponent(jLabel133)
                            .addComponent(jLabel130)
                            .addComponent(jLabel131)))
                    .addGroup(UsersPanel16Layout.createSequentialGroup()
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jTextField108, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField105, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField102, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField72, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField75, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField78, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField81, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField84, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField87, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField90, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel103, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
                            .addComponent(jTextField93, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField96, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField99, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField111))
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(UsersPanel16Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel104, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(UsersPanel16Layout.createSequentialGroup()
                                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jTextField76, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(UsersPanel16Layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jTextField79, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                .addComponent(jTextField82, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                                                .addComponent(jTextField85, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField88, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField91, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField94, javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jTextField97, javax.swing.GroupLayout.Alignment.LEADING))
                                            .addComponent(jTextField100, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTextField103, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextField106, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextField109, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextField112, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel135)
                                    .addComponent(jLabel136)
                                    .addComponent(jLabel137)
                                    .addComponent(jLabel138)
                                    .addComponent(jLabel139)
                                    .addComponent(jLabel140)
                                    .addComponent(jLabel141)
                                    .addComponent(jLabel142)))
                            .addGroup(UsersPanel16Layout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addComponent(jTextField73, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel134)))))
                .addContainerGap(139, Short.MAX_VALUE))
        );
        UsersPanel16Layout.setVerticalGroup(
            UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel16Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(pacjent_historia_wizyt_aktualizuj8)
                    .addGroup(UsersPanel16Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel102, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel103)
                            .addComponent(jLabel104))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel16Layout.createSequentialGroup()
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(morfo_ob1)
                            .addComponent(jTextField60)
                            .addComponent(jTextField61, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel123)
                            .addComponent(jLabel130))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel105)
                            .addComponent(morfo_ob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField63, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField64, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel131))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel106)
                            .addComponent(morfo_ob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField66, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField67, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel132))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel110)
                            .addComponent(morfo_ob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField69, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField70, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel133))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel111)
                            .addComponent(morfo_ob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField72, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField73, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel134))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField76, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel116)
                                .addComponent(morfo_ob6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextField75, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel135)))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel117)
                            .addComponent(morfo_ob7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField78, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField79, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel136))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel118)
                            .addComponent(morfo_ob8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField81, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField82, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel137))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel119)
                            .addComponent(morfo_ob9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField84, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField85, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel120)
                            .addComponent(morfo_ob10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField87, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField88, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel138))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel121)
                            .addComponent(morfo_ob11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField90, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField91, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel139))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel122)
                            .addComponent(morfo_ob12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel124)
                            .addComponent(morfo_ob13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField96, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField97, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel140))
                        .addGap(5, 5, 5)
                        .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel125)
                            .addComponent(morfo_ob14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField99, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField100, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(pacjent_wyniki_morfologia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(5, 5, 5)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel126)
                    .addComponent(morfo_ob15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField102, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField103, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(5, 5, 5)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel127)
                    .addComponent(morfo_ob16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField105, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField106, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(2, 2, 2)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel128)
                    .addComponent(morfo_ob17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField108, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField109, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel141))
                .addGap(5, 5, 5)
                .addGroup(UsersPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel129)
                    .addComponent(morfo_ob18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField111, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField112, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel142))
                .addGap(244, 244, 244))
        );

        PacjentPanel_1.addTab("Morfologia krwi", UsersPanel16);

        javax.swing.GroupLayout UsersPanel2Layout = new javax.swing.GroupLayout(UsersPanel2);
        UsersPanel2.setLayout(UsersPanel2Layout);
        UsersPanel2Layout.setHorizontalGroup(
            UsersPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 795, Short.MAX_VALUE)
            .addGroup(UsersPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(UsersPanel2Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(PacjentPanel_1, javax.swing.GroupLayout.PREFERRED_SIZE, 795, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        UsersPanel2Layout.setVerticalGroup(
            UsersPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 575, Short.MAX_VALUE)
            .addGroup(UsersPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(UsersPanel2Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(PacjentPanel_1, javax.swing.GroupLayout.PREFERRED_SIZE, 575, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        Panel_WizytaDomowa.addTab("Wyniki badan prostych", UsersPanel2);

        PacjentPanel_3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        PacjentPanel_3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PacjentPanel_3MouseClicked(evt);
            }
        });

        prev_swojlekarz.setText("Poprzedni tydzień");
        prev_swojlekarz.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_swojlekarzActionPerformed(evt);
            }
        });

        next_swojlekarz.setText("Nastepny tydzień");
        next_swojlekarz.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_swojlekarzActionPerformed(evt);
            }
        });

        Button_swojlekarz.setText("Odswiez mnie");
        Button_swojlekarz.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_swojlekarzActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanel17Layout = new javax.swing.GroupLayout(UsersPanel17);
        UsersPanel17.setLayout(UsersPanel17Layout);
        UsersPanel17Layout.setHorizontalGroup(
            UsersPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scCalendar_swojlekarz)
            .addGroup(UsersPanel17Layout.createSequentialGroup()
                .addComponent(Button_swojlekarz)
                .addGap(73, 73, 73)
                .addComponent(prev_swojlekarz, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(date_swojlekarz)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(next_swojlekarz, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                .addGap(200, 200, 200))
        );
        UsersPanel17Layout.setVerticalGroup(
            UsersPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel17Layout.createSequentialGroup()
                .addGroup(UsersPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_swojlekarz)
                    .addComponent(next_swojlekarz)
                    .addComponent(date_swojlekarz)
                    .addComponent(Button_swojlekarz))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_swojlekarz, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE))
        );

        PacjentPanel_3.addTab("Do lekarza rodzinnego", UsersPanel17);

        jLabel143.setText("Lekarze po specjalizacji i nazwisku:");

        DoktorCOMBO.setModel(new javax.swing.DefaultComboBoxModel(Users.getDoctorsList_COMBOBOX()));
        DoktorCOMBO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DoktorCOMBOActionPerformed(evt);
            }
        });

        jButton8.setText("Pokaz!");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        prev_wszyscylekarze.setText("Poprzedni tydzień");
        prev_wszyscylekarze.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_wszyscylekarzeActionPerformed(evt);
            }
        });

        next_wszyscylekarze.setText("Nastepny tydzień");
        next_wszyscylekarze.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_wszyscylekarzeActionPerformed(evt);
            }
        });

        date_wszyscylekarze.setText("jLabel57");

        javax.swing.GroupLayout UsersPanel18Layout = new javax.swing.GroupLayout(UsersPanel18);
        UsersPanel18.setLayout(UsersPanel18Layout);
        UsersPanel18Layout.setHorizontalGroup(
            UsersPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(UsersPanel18Layout.createSequentialGroup()
                        .addGroup(UsersPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel143)
                            .addComponent(DoktorCOMBO, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton8))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(scCalendar_wszyscylekarze)
                    .addGroup(UsersPanel18Layout.createSequentialGroup()
                        .addGap(164, 164, 164)
                        .addComponent(prev_wszyscylekarze, javax.swing.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(date_wszyscylekarze)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(next_wszyscylekarze, javax.swing.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE)
                        .addGap(200, 200, 200)))
                .addContainerGap())
        );
        UsersPanel18Layout.setVerticalGroup(
            UsersPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel143)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(DoktorCOMBO, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(UsersPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_wszyscylekarze)
                    .addComponent(next_wszyscylekarze)
                    .addComponent(date_wszyscylekarze))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_wszyscylekarze, javax.swing.GroupLayout.DEFAULT_SIZE, 398, Short.MAX_VALUE)
                .addGap(35, 35, 35))
        );

        PacjentPanel_3.addTab("Wszyscy lekarze", UsersPanel18);

        Panel_WizytaDomowa.addTab("Zapisz sie w przychodni", PacjentPanel_3);

        jLabel144.setText("Wybierz badanie na jakie masz ochote sie zarejestrowac:");

        COMBO_badania_wolneterminy.setModel(new javax.swing.DefaultComboBoxModel(Pacjenci.getBadaniaList_COMBOBOX()));

        Badania_wolneterminy_button.setText("Pokaz wolne terminy zwiazane z tym badaniem");
        Badania_wolneterminy_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Badania_wolneterminy_buttonActionPerformed(evt);
            }
        });

        next_badania_wolneterminy.setText("Nastepny tydzień");
        next_badania_wolneterminy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_badania_wolneterminyActionPerformed(evt);
            }
        });

        prev_badania_wolneterminy.setText("Poprzedni tydzień");
        prev_badania_wolneterminy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_badania_wolneterminyActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanel19Layout = new javax.swing.GroupLayout(UsersPanel19);
        UsersPanel19.setLayout(UsersPanel19Layout);
        UsersPanel19Layout.setHorizontalGroup(
            UsersPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(scCalendar_badania_wolneterminy)
                    .addGroup(UsersPanel19Layout.createSequentialGroup()
                        .addGap(164, 164, 164)
                        .addComponent(prev_badania_wolneterminy, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(date3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(data_badania_wolneterminy)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(next_badania_wolneterminy, javax.swing.GroupLayout.DEFAULT_SIZE, 198, Short.MAX_VALUE)
                        .addGap(200, 200, 200))
                    .addGroup(UsersPanel19Layout.createSequentialGroup()
                        .addGroup(UsersPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel144)
                            .addComponent(COMBO_badania_wolneterminy, javax.swing.GroupLayout.PREFERRED_SIZE, 378, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Badania_wolneterminy_button))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        UsersPanel19Layout.setVerticalGroup(
            UsersPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel144, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(COMBO_badania_wolneterminy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Badania_wolneterminy_button)
                .addGap(26, 26, 26)
                .addGroup(UsersPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_badania_wolneterminy)
                    .addComponent(next_badania_wolneterminy)
                    .addComponent(date3)
                    .addComponent(data_badania_wolneterminy))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_badania_wolneterminy, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE)
                .addGap(48, 48, 48))
        );

        Panel_WizytaDomowa.addTab("Zapisz sie na badania", UsersPanel19);

        PacjentPanel_4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        PacjentPanel_4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PacjentPanel_4MouseClicked(evt);
            }
        });

        prev_badaniertg.setText("Poprzedni tydzień");
        prev_badaniertg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_badaniertgActionPerformed(evt);
            }
        });

        next_badaniertg.setText("Nastepny tydzień");
        next_badaniertg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_badaniertgActionPerformed(evt);
            }
        });

        Button_badaniertg.setText("Odswiez mnie");
        Button_badaniertg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_badaniertgActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanel20Layout = new javax.swing.GroupLayout(UsersPanel20);
        UsersPanel20.setLayout(UsersPanel20Layout);
        UsersPanel20Layout.setHorizontalGroup(
            UsersPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scCalendar_badaniertg)
            .addGroup(UsersPanel20Layout.createSequentialGroup()
                .addComponent(Button_badaniertg)
                .addGap(73, 73, 73)
                .addComponent(prev_badaniertg, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(date_badaniertg)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(next_badaniertg, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                .addGap(200, 200, 200))
        );
        UsersPanel20Layout.setVerticalGroup(
            UsersPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel20Layout.createSequentialGroup()
                .addGroup(UsersPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_badaniertg)
                    .addComponent(next_badaniertg)
                    .addComponent(date_badaniertg)
                    .addComponent(Button_badaniertg))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_badaniertg, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE))
        );

        PacjentPanel_4.addTab("Badanie RTG", UsersPanel20);

        prev_badanieusg.setText("Poprzedni tydzień");
        prev_badanieusg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_badanieusgActionPerformed(evt);
            }
        });

        next_badanieusg.setText("Nastepny tydzień");
        next_badanieusg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_badanieusgActionPerformed(evt);
            }
        });

        Button_badanieusg.setText("Odswiez mnie");
        Button_badanieusg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_badanieusgActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout UsersPanel21Layout = new javax.swing.GroupLayout(UsersPanel21);
        UsersPanel21.setLayout(UsersPanel21Layout);
        UsersPanel21Layout.setHorizontalGroup(
            UsersPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scCalendar_badanieusg)
            .addGroup(UsersPanel21Layout.createSequentialGroup()
                .addComponent(Button_badanieusg)
                .addGap(73, 73, 73)
                .addComponent(prev_badanieusg, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(date_badanieusg)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(next_badanieusg, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                .addGap(200, 200, 200))
        );
        UsersPanel21Layout.setVerticalGroup(
            UsersPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel21Layout.createSequentialGroup()
                .addGroup(UsersPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_badanieusg)
                    .addComponent(next_badanieusg)
                    .addComponent(date_badanieusg)
                    .addComponent(Button_badanieusg))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_badanieusg, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE))
        );

        PacjentPanel_4.addTab("Badanie USG", UsersPanel21);

        Button_szczepionki.setText("Odswiez mnie");
        Button_szczepionki.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_szczepionkiActionPerformed(evt);
            }
        });

        prev_szczepionki.setText("Poprzedni tydzień");
        prev_szczepionki.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                prev_szczepionkiActionPerformed(evt);
            }
        });

        next_szczepionki.setText("Nastepny tydzień");
        next_szczepionki.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                next_szczepionkiActionPerformed(evt);
            }
        });

        COMBO_szczepionki.setModel(new javax.swing.DefaultComboBoxModel(Pacjenci.getSzczepionkiList_COMBOBOX()));

        jLabel63.setText("Wybierz szczepionke, a nastepnie wybierz odpowiadajacy Ci mniej wiecej termin");

        javax.swing.GroupLayout UsersPanel22Layout = new javax.swing.GroupLayout(UsersPanel22);
        UsersPanel22.setLayout(UsersPanel22Layout);
        UsersPanel22Layout.setHorizontalGroup(
            UsersPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UsersPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(UsersPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(scCalendar_szczepionki, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(UsersPanel22Layout.createSequentialGroup()
                        .addGroup(UsersPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(COMBO_szczepionki, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(UsersPanel22Layout.createSequentialGroup()
                                .addComponent(Button_szczepionki)
                                .addGap(68, 68, 68)
                                .addComponent(prev_szczepionki, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(date_szczepionki)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(next_szczepionki, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)))
                        .addContainerGap(231, Short.MAX_VALUE))
                    .addGroup(UsersPanel22Layout.createSequentialGroup()
                        .addComponent(jLabel63)
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        UsersPanel22Layout.setVerticalGroup(
            UsersPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, UsersPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel63)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(COMBO_szczepionki, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                .addGroup(UsersPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prev_szczepionki)
                    .addComponent(date_szczepionki)
                    .addComponent(next_szczepionki)
                    .addComponent(Button_szczepionki))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scCalendar_szczepionki, javax.swing.GroupLayout.PREFERRED_SIZE, 447, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        PacjentPanel_4.addTab("Szczepienia", UsersPanel22);

        Panel_WizytaDomowa.addTab("Dodatkowe", PacjentPanel_4);

        AuthorizationTabbedPane.addTab("Pacjent", Panel_WizytaDomowa);

        lTitle.setFont(new java.awt.Font("Calibri", 2, 36)); // NOI18N
        lTitle.setText("Przychodnia");

        bLogout.setText("Wyloguj");
        bLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bLogoutActionPerformed(evt);
            }
        });

        lWhoIsLogin.setText("Jesteś zalogowany jako:");

        lLoginName.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lLoginName.setText("Jan Kowalski");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lTitle)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 307, Short.MAX_VALUE)
                .addComponent(lWhoIsLogin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lLoginName, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(bLogout))
            .addComponent(AuthorizationTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lWhoIsLogin)
                        .addComponent(bLogout)
                        .addComponent(lLoginName))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(lTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(AuthorizationTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 625, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bLogoutActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Config conf = new Config();
        if (conf.loadConfig()) {
            conf.modifyProperty("remember", "false");
            conf.modifyProperty("password", "");
            conf.modifyProperty("login", "");
            conf.saveConfig();
        }
        LoginFrame.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_bLogoutActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
        JFileChooser fc_temp = new JFileChooser("C:\\Program Files\\Microsoft SQL Server\\MSSQL11.MSSQLSERVER\\MSSQL\\Backup");
        if (fc_temp.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {
            //zapisuje do pliku
            File file_temp = fc_temp.getSelectedFile();
            String path_temp = file_temp.getAbsolutePath();
            if (!fc_temp.getSelectedFile().getAbsolutePath().substring(fc_temp.getSelectedFile().getAbsolutePath().length() - 4, fc_temp.getSelectedFile().getAbsolutePath().length()).equals(".bak")) {
                path_temp += ".bak";
            }
            Session.BackUp(path_temp);
            JOptionPane.showMessageDialog(this, "Kopia bazy wykonana pomyślnie!");
        }
    }//GEN-LAST:event_jButton6ActionPerformed

    private void bSearchByDocRecipeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchByDocRecipeActionPerformed
        // TODO add your handling code here:
        if (cbDoctorsRecipe.getSelectedItem() != null) {
            RecipesTableOnAdminRecipes = Recipes.getRecipesByDoctor(cbDoctorsRecipe.getSelectedItem().toString().substring(0, cbDoctorsRecipe.getSelectedItem().toString().indexOf(" ")));
            if (RecipesTableOnAdminRecipes != null) {
                listSelectionModel = RecipesTableOnAdminRecipes.getSelectionModel();
                listSelectionModel.addListSelectionListener(new slshRecipesTableOnAdminRecipes());
                RecipesTableOnAdminRecipes.setSelectionModel(listSelectionModel);
                spRecipes.setViewportView(RecipesTableOnAdminRecipes);
            }
        }
    }//GEN-LAST:event_bSearchByDocRecipeActionPerformed

    private void cbSpecRecipeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbSpecRecipeActionPerformed
        // TODO add your handling code here:
        System.out.println(cbSpecRecipe.getSelectedItem().toString().substring(cbSpecRecipe.getSelectedItem().toString().indexOf(" ") + 1, cbSpecRecipe.getSelectedItem().toString().length()));
        cbDoctorsRecipe.setModel(new javax.swing.DefaultComboBoxModel(Doctor.getDoctorsModelBySpec(cbSpecRecipe.getSelectedItem().toString().substring(cbSpecRecipe.getSelectedItem().toString().indexOf(" ") + 1, cbSpecRecipe.getSelectedItem().toString().length()))));
    }//GEN-LAST:event_cbSpecRecipeActionPerformed

    private void bSearchByPersonRecipeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchByPersonRecipeActionPerformed
        // TODO add your handling code here:
        if (!tRecipesName.getText().isEmpty()) {
            RecipesTableOnAdminRecipes = Recipes.getRecipesBySurname(tRecipesName.getText());
        } else {
            RecipesTableOnAdminRecipes = Recipes.getRecipesByPesel(tRecipesPesel.getText());
        }
        if (RecipesTableOnAdminRecipes != null) {
            listSelectionModel = RecipesTableOnAdminRecipes.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshRecipesTableOnAdminRecipes());
            RecipesTableOnAdminRecipes.setSelectionModel(listSelectionModel);
            spRecipes.setViewportView(RecipesTableOnAdminRecipes);
        }
    }//GEN-LAST:event_bSearchByPersonRecipeActionPerformed

    private void bAddProducersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddProducersActionPerformed
        // TODO add your handling code here:
        String row[] = new String[3];
        row[0] = tAddProducersName.getText();
        row[1] = tAddProducersAdress.getText();
        row[2] = tAddProducersTelephone.getText();
        if (Producers.addProducer(row)) {
            JOptionPane.showMessageDialog(this, "Dodano producenta!");
        }
    }//GEN-LAST:event_bAddProducersActionPerformed

    private void bDeleteProducersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDeleteProducersActionPerformed
        // TODO add your handling code here:
        if (Producers.deleteProducer()) {
            JOptionPane.showMessageDialog(this, "Usunięto producenta!");
        }
    }//GEN-LAST:event_bDeleteProducersActionPerformed

    private void bAllProducersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAllProducersActionPerformed
        // TODO add your handling code here:
        ProducersTableOnAdminProducers = Producers.getAllProducers();
        if (ProducersTableOnAdminProducers != null) {
            listSelectionModel = ProducersTableOnAdminProducers.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshProducersTableOnAdminProducers());
            ProducersTableOnAdminProducers.setSelectionModel(listSelectionModel);
            spProducers.setViewportView(ProducersTableOnAdminProducers);
        }
    }//GEN-LAST:event_bAllProducersActionPerformed

    private void bSearchProducersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchProducersActionPerformed
        // TODO add your handling code here:
        ProducersTableOnAdminProducers = Producers.getProducers(tProducersName.getText(), tProducersAdress.getText(), tProducersTelephone.getText());
        if (ProducersTableOnAdminProducers != null) {
            listSelectionModel = ProducersTableOnAdminProducers.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshProducersTableOnAdminProducers());
            ProducersTableOnAdminProducers.setSelectionModel(listSelectionModel);
            spProducers.setViewportView(ProducersTableOnAdminProducers);
        }
    }//GEN-LAST:event_bSearchProducersActionPerformed

    private void bAddVaccineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddVaccineActionPerformed
        // TODO add your handling code here:
        String row[] = new String[3];
        row[0] = tAddVaccineName.getText();
        row[1] = tAddVaccinePrice.getText();
        row[2] = tAddVaccineDesc.getText();
        if (Vaccine.addVaccine(row)) {
            JOptionPane.showMessageDialog(this, "Dodano szepionke!");
        }
    }//GEN-LAST:event_bAddVaccineActionPerformed

    private void bDeleteVaccineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDeleteVaccineActionPerformed
        // TODO add your handling code here:
        if (Vaccine.deleteVacinne()) {
            JOptionPane.showMessageDialog(this, "Usunięto szepionke!");
        }
    }//GEN-LAST:event_bDeleteVaccineActionPerformed

    private void bAllVaccineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAllVaccineActionPerformed
        // TODO add your handling code here:
        VaccineTableOnAdminVaccine = Vaccine.getAllVaccine();

        if (VaccineTableOnAdminVaccine != null) {
            listSelectionModel = VaccineTableOnAdminVaccine.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshVaccineTableOnAdminVaccine());
            VaccineTableOnAdminVaccine.setSelectionModel(listSelectionModel);
            spVaccine.setViewportView(VaccineTableOnAdminVaccine);
        }
    }//GEN-LAST:event_bAllVaccineActionPerformed

    private void bSearchVaccineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchVaccineActionPerformed
        // TODO add your handling code here:
        float price_from_temp;
        float price_to_temp;
        if (tVaccinePriceFrom.getText().equals("")) {
            price_from_temp = 0;
        } else {
            price_from_temp = Float.parseFloat(tVaccinePriceFrom.getText());
        }
        if (tVaccinePriceTo.getText().equals("")) {
            price_to_temp = Float.MAX_VALUE;
        } else {
            price_to_temp = Float.parseFloat(tVaccinePriceTo.getText());
        }
        VaccineTableOnAdminVaccine = Vaccine.getVaccine(tVaccineName.getText(), price_from_temp, price_to_temp, tSearchVaccineDesc.getText());

        if (VaccineTableOnAdminVaccine != null) {
            listSelectionModel = VaccineTableOnAdminVaccine.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshVaccineTableOnAdminVaccine());
            VaccineTableOnAdminVaccine.setSelectionModel(listSelectionModel);
            spVaccine.setViewportView(VaccineTableOnAdminVaccine);
        }
    }//GEN-LAST:event_bSearchVaccineActionPerformed

    private void bAddOfficeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddOfficeActionPerformed
        // TODO add your handling code here:
        String row[] = new String[3];
        row[0] = tAddOfficeNumber.getText();
        row[1] = tAddOfficeName.getText();
        row[2] = tAddOfficeDesc.getText();
        if (Offices.addOffice(row)) {
            JOptionPane.showMessageDialog(this, "Dodano gabinet!");
        }
    }//GEN-LAST:event_bAddOfficeActionPerformed

    private void bDeleteOfficeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDeleteOfficeActionPerformed
        // TODO add your handling code here:
        if (Offices.deleteOffice()) {
            JOptionPane.showMessageDialog(this, "Usunięto gabinet!");
        }
    }//GEN-LAST:event_bDeleteOfficeActionPerformed

    private void bAllOfficesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAllOfficesActionPerformed
        // TODO add your handling code here:
        OfficesTableOnAdminOffices = Offices.getAllOffices();

        if (OfficesTableOnAdminOffices != null) {
            listSelectionModel = OfficesTableOnAdminOffices.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshOfficesTableOnAdminOffices());
            OfficesTableOnAdminOffices.setSelectionModel(listSelectionModel);
            spOffice.setViewportView(OfficesTableOnAdminOffices);
        }
    }//GEN-LAST:event_bAllOfficesActionPerformed

    private void bSearchOfficeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchOfficeActionPerformed
        // TODO add your handling code here:
        int number_from_temp = 0;
        int number_to_temp = 0;
        if (tNumberFrom.getText().equals("")) {
            number_from_temp = 0;
        } else {
            number_from_temp = Integer.parseInt(tNumberFrom.getText());
        }
        if (tNumberTo.getText().equals("")) {
            number_to_temp = Integer.MAX_VALUE;
        } else {
            number_to_temp = Integer.parseInt(tNumberTo.getText());
        }
        OfficesTableOnAdminOffices = Offices.getOffices(tName2.getText(), number_from_temp, number_to_temp, tSearchOfficesDesc.getText());

        if (OfficesTableOnAdminOffices != null) {
            listSelectionModel = OfficesTableOnAdminOffices.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshOfficesTableOnAdminOffices());
            OfficesTableOnAdminOffices.setSelectionModel(listSelectionModel);
            spOffice.setViewportView(OfficesTableOnAdminOffices);
        }
    }//GEN-LAST:event_bSearchOfficeActionPerformed

    private void bAddMedicine1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddMedicine1ActionPerformed
        // TODO add your handling code here:
        String row[] = new String[3];
        row[0] = tAddAccessName.getText();
        row[1] = tAddAccesPrzeznaczenie.getText();
        row[2] = tAddAccessCount.getText();
        if (Accessories.addAccessory(row)) {
            JOptionPane.showMessageDialog(this, "Dodano przedmiot!");
        }
    }//GEN-LAST:event_bAddMedicine1ActionPerformed

    private void bDeleteAccessActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDeleteAccessActionPerformed
        // TODO add your handling code here:
        if (Accessories.deleteAccessory()) {
            JOptionPane.showMessageDialog(this, "Usunięto przedmiot");
        }
    }//GEN-LAST:event_bDeleteAccessActionPerformed

    private void bAllAccessActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAllAccessActionPerformed
        // TODO add your handling code here:
        AccessoriesTableOnAdminAccessories = Accessories.getAllAccessories();

        if (AccessoriesTableOnAdminAccessories != null) {
            listSelectionModel = AccessoriesTableOnAdminAccessories.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshAccessoriesTableOnAdminAccessories());
            AccessoriesTableOnAdminAccessories.setSelectionModel(listSelectionModel);
            spAccessories.setViewportView(AccessoriesTableOnAdminAccessories);
        }
    }//GEN-LAST:event_bAllAccessActionPerformed

    private void bSearchAccessActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchAccessActionPerformed
        // TODO add your handling code here:
        //AccessoriesTableOnAdminAccessories=Accessories.getAllAccessories();
        float count_from_temp;
        float count_to_temp;

        if (!tCountFrom.getText().equals("")) {
            count_from_temp = Float.parseFloat(tCountFrom.getText());
        } else {
            count_from_temp = 0;
        }
        if (!tCountTo.getText().equals("")) {
            count_to_temp = Float.parseFloat(tCountTo.getText());
        } else {
            count_to_temp = Float.MAX_VALUE;
        }

        AccessoriesTableOnAdminAccessories = Accessories.getAccessories(tName1.getText(), count_from_temp, count_to_temp, tSearchAccessPrzeznaczenie.getText());

        if (AccessoriesTableOnAdminAccessories != null) {
            listSelectionModel = AccessoriesTableOnAdminAccessories.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshAccessoriesTableOnAdminAccessories());
            AccessoriesTableOnAdminAccessories.setSelectionModel(listSelectionModel);
            spAccessories.setViewportView(AccessoriesTableOnAdminAccessories);
        }
    }//GEN-LAST:event_bSearchAccessActionPerformed

    private void bAddMedicineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddMedicineActionPerformed
        // TODO add your handling code here:
        String row[] = new String[4];
        row[0] = cbProducent1.getSelectedItem().toString().substring(0, cbProducent1.getSelectedItem().toString().indexOf(" "));
        row[1] = tAddMedicineName.getText();
        row[2] = cbAuth1.getSelectedItem().toString();
        if (row[2].equals("Tak")) {
            row[2] = "1";
        } else {
            row[2] = "0";
        }
        row[3] = tAddMedicinePrice.getText();
        if (Drugs.addMedicine(row)) {
            JOptionPane.showMessageDialog(this, "Dodano lek!");
        }
    }//GEN-LAST:event_bAddMedicineActionPerformed

    private void bDeleteMedicineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDeleteMedicineActionPerformed
        // TODO add your handling code here:
        if (Drugs.deleteMedicine()) {
            JOptionPane.showMessageDialog(this, "Usunięto lek!");
        }
    }//GEN-LAST:event_bDeleteMedicineActionPerformed

    private void bAllDrugsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAllDrugsActionPerformed
        // TODO add your handling code here:
        MedicinesTableOnAdminMedicines = Drugs.getAllDrugs();

        if (MedicinesTableOnAdminMedicines != null) {
            listSelectionModel = MedicinesTableOnAdminMedicines.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshMedicinesTableOnAdminMedicines());
            MedicinesTableOnAdminMedicines.setSelectionModel(listSelectionModel);
            spDrugsProducers.setViewportView(MedicinesTableOnAdminMedicines);
        }
    }//GEN-LAST:event_bAllDrugsActionPerformed

    private void bSearchDrugActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchDrugActionPerformed
        // TODO add your handling code here:
        float price_from_temp;
        float price_to_temp;

        if (!tPriceFrom.getText().equals("")) {
            price_from_temp = Float.parseFloat(tPriceFrom.getText());
        } else {
            price_from_temp = 0;
        }
        if (!tPriceTo.getText().equals("")) {
            price_to_temp = Float.parseFloat(tPriceTo.getText());
        } else {
            price_to_temp = Float.MAX_VALUE;
        }

        MedicinesTableOnAdminMedicines = Drugs.getDrugs(tName.getText(), cbProducent.getSelectedItem().toString().substring(0, cbProducent.getSelectedItem().toString().
            indexOf(" ")), price_from_temp, price_to_temp, cbRef.getSelectedItem().toString());

    if (MedicinesTableOnAdminMedicines != null) {
        listSelectionModel = MedicinesTableOnAdminMedicines.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshMedicinesTableOnAdminMedicines());
        MedicinesTableOnAdminMedicines.setSelectionModel(listSelectionModel);
        spDrugsProducers.setViewportView(MedicinesTableOnAdminMedicines);
        }
    }//GEN-LAST:event_bSearchDrugActionPerformed

    private void cbAuthActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAuthActionPerformed
        // TODO add your handling code here:

        switch (cbAuth.getSelectedItem().toString()) {
            case "Admin": {
                DoktorPanel.setVisible(false);
                Panel_WizytaDomowa.setVisible(false);
                break;
            }
            case "Medyk": {
                Panel_WizytaDomowa.setVisible(false);
                DoktorPanel.setVisible(true);
                break;
            }
            case "Pacjent": {
                DoktorPanel.setVisible(false);
                Panel_WizytaDomowa.setVisible(true);
                break;
            }
            case "Prezes": {
                DoktorPanel.setVisible(false);
                Panel_WizytaDomowa.setVisible(false);
                break;
            }
        }

        if (cbAuth.getSelectedItem().toString().equals("Pacjent")) {
            DoktorPanel.setVisible(false);
            PacjentPanel.setVisible(true);
        } else if (cbAuth.getSelectedItem().toString().equals("Medyk")) {
            PacjentPanel.setVisible(false);
            DoktorPanel.setVisible(true);
        }
    }//GEN-LAST:event_cbAuthActionPerformed

    private void bAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddActionPerformed
        // TODO add your handling code here:
        User tempUser = new User(1, Status.valueOf(cbAuth.getSelectedItem().toString()), tLoginAdd.getText(),
            tFirstNameAdd.getText(), tLastNameAdd.getText(), tEMailAdd.getText(), iscAddUserOnAdminUser, this);
        Users tempUsers = new Users(this);
        int activeTemp = 0;
        if (iscAddUserOnAdminUser) {
            activeTemp = 1;
        }

        if (cbAuth.getSelectedItem().toString().equals("Medyk")) {
            Doctor tempDoctor = new Doctor(tempUser, cbSpec.getSelectedItem().toString(), tNrLic.getText(), this);
            try {
                tempDoctor.addDoctor(tempDoctor, tPasswordAdd.getText());
            } catch (SQLException ex) {
                Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else if (cbAuth.getSelectedItem().toString().equals("Pacjent")) {
            String id_med_temp = cbDocPat.getSelectedItem().toString();
            Patient tempPatient = new Patient(tempUser, id_med_temp.substring(0, id_med_temp.indexOf(" ")), tPesel.getText(), tAdress.getText(), tNrU.getText(), this);
            try {
                tempPatient.addPatient(tempPatient, tPasswordAdd.getText());
            } catch (SQLException ex) {
                Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            tempUsers.addUser(tempUser, tPasswordAdd.getText(), activeTemp);
        }
        JOptionPane.showMessageDialog(this, "Dodano użytkownika!");
    }//GEN-LAST:event_bAddActionPerformed

    private void cIsActiveAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cIsActiveAddActionPerformed
        // TODO add your handling code here:
        if (iscAddUserOnAdminUser == false) {
            iscAddUserOnAdminUser = true;
        } else {
            iscAddUserOnAdminUser = false;
        }
    }//GEN-LAST:event_cIsActiveAddActionPerformed

    private void bEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bEditActionPerformed
        // TODO add your handling code here:
        Users usersTemp = new Users(this);
        int active = 0;
        if (iscIsActiveCheckedOnAdminUser) {
            active = 1;
        }
        if (usersTemp.updateUser(tFirstNameSearch.getText(), tLastNameSearch.getText(), Status.valueOf(
            cbAuth1.getSelectedItem().toString()), tEmailSearch.getText(), active)) {
    JOptionPane.showMessageDialog(this, "Zmieniono!");
    }
    }//GEN-LAST:event_bEditActionPerformed

    private void DeleteUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DeleteUserActionPerformed
        // TODO add your handling code here:
        Users usersTemp = new Users(this);
        if (cbAuth1.getSelectedItem().toString().equals("Medyk")) {
            if (Doctor.deleteDoctor(tEmailSearch.getText())) {
                JOptionPane.showMessageDialog(this, "Usunięto!");
            }
        } else if (cbAuth1.getSelectedItem().toString().equals("Pacjent")) {
            System.out.println("tu");
            if (Patient.deletePatient(tEmailSearch.getText())) {
                JOptionPane.showMessageDialog(this, "Usunięto!");
            }
        } else if (usersTemp.deleteUser(tEmailSearch.getText())) {
            JOptionPane.showMessageDialog(this, "Usunięto!");
        }
    }//GEN-LAST:event_DeleteUserActionPerformed

    private void bSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSearchActionPerformed

        Status statusTemp = null;
        String firstnameTemp = null;
        String lastnameTemp = null;
        String emailTemp = null;
        String isactiveTemp = null;

        try {

            if (!cbAuth1.getSelectedItem().toString().isEmpty()) {
                statusTemp = Status.values()[Status.valueOf(cbAuth1.getSelectedItem().toString()).ordinal() + 1];
            }
            if (!tFirstNameSearch.getText().isEmpty()) {
                firstnameTemp = tFirstNameSearch.getText();
            }
            if (!tLastNameSearch.getText().isEmpty()) {
                lastnameTemp = tLastNameSearch.getText();
            }
            if (!tEmailSearch.getText().isEmpty()) {
                emailTemp = tEmailSearch.getText();
            }
            if (iscIsActiveCheckedOnAdminUser == true) {
                isactiveTemp = "1";
            }

            Users users = new Users(this);

            UserTableOnAdminUser = users.getUsers(-1, statusTemp, null, firstnameTemp, lastnameTemp, emailTemp, isactiveTemp);
        } catch (Exception ex) {
            ErrorLogger.getInstance().log("Podano złe uprawnienie", true, this);
        }

        if (UserTableOnAdminUser != null) {
            listSelectionModel = UserTableOnAdminUser.getSelectionModel();
            listSelectionModel.addListSelectionListener(new slshUserTableOnAdminUser());
            UserTableOnAdminUser.setSelectionModel(listSelectionModel);
            spUsersTable.setViewportView(UserTableOnAdminUser);
        }
    }//GEN-LAST:event_bSearchActionPerformed

    private void cIsActiveSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cIsActiveSearchActionPerformed
        if (iscIsActiveCheckedOnAdminUser == false) {
            iscIsActiveCheckedOnAdminUser = true;
        } else {
            iscIsActiveCheckedOnAdminUser = false;
        }
    }//GEN-LAST:event_cIsActiveSearchActionPerformed

    private void bAllUsersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAllUsersActionPerformed

        Users users = new Users(this);
        try {
            UserTableOnAdminUser = users.getAllUsers();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = UserTableOnAdminUser.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshUserTableOnAdminUser());
        UserTableOnAdminUser.setSelectionModel(listSelectionModel);
        spUsersTable.setViewportView(UserTableOnAdminUser);
    }//GEN-LAST:event_bAllUsersActionPerformed

    private void CalendarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_calendarMouseClicked
       
        Doctor d = new Doctor(user, this);
        calendar = new JCalendar(new JCalendar.Hour(6, 0), new JCalendar.Hour(20, 30), 15);
        if (jTabbedPane1.getSelectedIndex() == 1) {
            calendar.getCalendar().addMouseListener(new PopUpListener(calendar, new Doctor(user, this), false));
            calendar.update(d.getHoliday(calendar.getFirstDayOfWeek(calendar.getDate()),
                    calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.HOLIDAY);
            calendar.update(d.getPacientsVisit(calendar.getFirstDayOfWeek(calendar.getDate()),
                    calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.VISIT);
            date.setText(df.format(calendar.getFirstDayOfWeek(calendar.getDate())) + " - "
                    + df.format(calendar.getLastDayOfWeek(calendar.getDate())));
            scCalendar.setViewportView(calendar.getCalendar());
        } else {
            calendar.getCalendar().addMouseListener(new PopUpListener(calendar, new Doctor(user, this), true));
            calendar.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            scTerms.setViewportView(calendar.getCalendar());
        }
    }//GEN-LAST:event_calendarMouseClicked

    private void pacjent_historia_wizyt_aktualizujActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizujActionPerformed

        Pacjenci pacjent = new Pacjenci(this);
        try {
            JTable tab = pacjent.getHistoriaWizyt(user.getID());
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            VisitTableOnPersonHistory  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = VisitTableOnPersonHistory.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshVisitTableOnPersonHistory());
        VisitTableOnPersonHistory.setSelectionModel(listSelectionModel);
        pacjent_historia_wizyt_lista.setViewportView(VisitTableOnPersonHistory);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizujActionPerformed

    private void pacjent_nadchodzace_terminy_aktualizujActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_nadchodzace_terminy_aktualizujActionPerformed
        NadchodzaceTerminy nt = new NadchodzaceTerminy(this);

        try {
            JTable tab = nt.get1(user.getID());
          //  tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            NadchodzaceTerminy_1  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = NadchodzaceTerminy_1.getSelectionModel();
        NadchodzaceTerminy_1.setSelectionModel(listSelectionModel);
        pacjent_nadchodzace_terminy_1.setViewportView(NadchodzaceTerminy_1);        
        
        try {
            JTable tab = nt.get2(user.getID());
          //  tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            NadchodzaceTerminy_2  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = NadchodzaceTerminy_2.getSelectionModel();
        NadchodzaceTerminy_2.setSelectionModel(listSelectionModel);
        pacjent_nadchodzace_terminy_2.setViewportView(NadchodzaceTerminy_2);         
  
        try {
            JTable tab = nt.get3(user.getID());
          //  tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            NadchodzaceTerminy_3  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = NadchodzaceTerminy_3.getSelectionModel();
        NadchodzaceTerminy_3.setSelectionModel(listSelectionModel);
        pacjent_nadchodzace_terminy_3.setViewportView(NadchodzaceTerminy_3);         
   
        try {
            JTable tab = nt.get4(user.getID());
          //  tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            NadchodzaceTerminy_4  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = NadchodzaceTerminy_4.getSelectionModel();
        NadchodzaceTerminy_4.setSelectionModel(listSelectionModel);
        pacjent_nadchodzace_terminy_4.setViewportView(NadchodzaceTerminy_4);         
   
        try {
            JTable tab = nt.get5(user.getID());
           // tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            NadchodzaceTerminy_5  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = NadchodzaceTerminy_5.getSelectionModel();
        NadchodzaceTerminy_5.setSelectionModel(listSelectionModel);
        pacjent_nadchodzace_terminy_5.setViewportView(NadchodzaceTerminy_5);         
   
       try {
            JTable tab = nt.get6(user.getID());
           // tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            NadchodzaceTerminy_6  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = NadchodzaceTerminy_6.getSelectionModel();
        NadchodzaceTerminy_6.setSelectionModel(listSelectionModel);
        pacjent_nadchodzace_terminy_6.setViewportView(NadchodzaceTerminy_6);         
   
        
        
        // TODO add your handling code here:
    }//GEN-LAST:event_pacjent_nadchodzace_terminy_aktualizujActionPerformed

    private void jTextField10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField10ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField10ActionPerformed

    private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField4ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField4ActionPerformed

    private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField3ActionPerformed

    private void ob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ob1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ob1ActionPerformed

    private void pacjent_historia_wizyt_aktualizuj4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizuj4ActionPerformed
        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getBadaniaMocz(user.getID());
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanMocz  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanMocz.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshWynikiBadanMocz());
        WynikiBadanMocz.setSelectionModel(listSelectionModel);
        pacjent_wyniki_badan_moczu.setViewportView(WynikiBadanMocz);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizuj4ActionPerformed

    private void ob13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ob13ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ob13ActionPerformed

    private void ob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ob3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ob3ActionPerformed

    private void jTextField46ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField46ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField46ActionPerformed

    private void jTextField37ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField37ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField37ActionPerformed

    private void jTextField9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField9ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField9ActionPerformed

    private void pacjent_historia_wizyt_aktualizuj7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizuj7ActionPerformed
        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getBadaniaLipidogram(user.getID());
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanLipidogram  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanLipidogram.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshWynikiBadanLipidogram());
        WynikiBadanLipidogram.setSelectionModel(listSelectionModel);
        pacjent_wyniki_lipidogram.setViewportView(WynikiBadanLipidogram);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizuj7ActionPerformed

    private void lipi_ob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lipi_ob1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_lipi_ob1ActionPerformed

    private void jTextField40ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField40ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField40ActionPerformed

    private void jTextField41ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField41ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField41ActionPerformed

    private void lipi_ob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lipi_ob3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_lipi_ob3ActionPerformed

    private void jTextField51ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField51ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField51ActionPerformed

    private void jTextField52ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField52ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField52ActionPerformed

    private void pacjent_historia_wizyt_aktualizuj8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizuj8ActionPerformed
        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getBadaniaMorfologia(user.getID());
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanMorfologia  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanMorfologia.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshWynikiBadanMorfologia());
        WynikiBadanMorfologia.setSelectionModel(listSelectionModel);
        pacjent_wyniki_morfologia.setViewportView(WynikiBadanMorfologia);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizuj8ActionPerformed

    private void morfo_ob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_morfo_ob1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_morfo_ob1ActionPerformed

    private void jTextField60ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField60ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField60ActionPerformed

    private void jTextField61ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField61ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField61ActionPerformed

    private void morfo_ob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_morfo_ob3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_morfo_ob3ActionPerformed

    private void jTextField66ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField66ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField66ActionPerformed

    private void jTextField67ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField67ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField67ActionPerformed

    private void jTextField94ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField94ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField94ActionPerformed

    private void morfo_ob13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_morfo_ob13ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_morfo_ob13ActionPerformed

    private void jTextField97ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField97ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField97ActionPerformed

    private void morfo_ob18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_morfo_ob18ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_morfo_ob18ActionPerformed

    private void jTextField69ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField69ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField69ActionPerformed

    private void jTextField79ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField79ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField79ActionPerformed

    private void jTextField64ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField64ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField64ActionPerformed

    private void jTextField82ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField82ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField82ActionPerformed

    private void jTextField96ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField96ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField96ActionPerformed

    private void jTextField106ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField106ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField106ActionPerformed

    private void jTextField108ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField108ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField108ActionPerformed

    private void prev_swojlekarzActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_swojlekarzActionPerformed
        calendar_swojlekarz.prevWeek();
        Doctor d = new Doctor(Users.getDoctorByPacient(user.getID(), this), this);
        calendar_swojlekarz.clear();
            calendar_swojlekarz.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
           calendar_swojlekarz.getCalendar().addMouseListener(new PopUpListener_WizytySwojlekarz(calendar_swojlekarz, new Doctor(Users.getDoctorByPacient(user.getID(), this), this), user));
            calendar_swojlekarz.update(d.getHoliday(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate()),
            calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_swojlekarz.update(d.getPacientsVisit(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate()),
            calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())), JCalendar.CellType.VISIT);
            calendar_swojlekarz.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);
        calendar_swojlekarz.repaint();
        date_swojlekarz.setText(df.format(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate())) + " - "
            + df.format(calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate()))); 
    }//GEN-LAST:event_prev_swojlekarzActionPerformed

    private void next_swojlekarzActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_swojlekarzActionPerformed
        calendar_swojlekarz.nextWeek();
        Doctor d = new Doctor(Users.getDoctorByPacient(user.getID(), this), this);
        calendar_swojlekarz.clear();
            calendar_swojlekarz.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_swojlekarz.getCalendar().addMouseListener(new PopUpListener_WizytySwojlekarz(calendar_swojlekarz, new Doctor(Users.getDoctorByPacient(user.getID(), this), this), user));
            calendar_swojlekarz.update(d.getHoliday(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate()),
            calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_swojlekarz.update(d.getPacientsVisit(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate()),
            calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())), JCalendar.CellType.VISIT);
            calendar_swojlekarz.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);
        calendar_swojlekarz.repaint();
        date_swojlekarz.setText(df.format(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate())) + " - "
            + df.format(calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate()))); 
    }//GEN-LAST:event_next_swojlekarzActionPerformed

    private void prev_wszyscylekarzeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_wszyscylekarzeActionPerformed
        calendar_wszyscylekarze.prevWeek();
         int id_medyka_z_combosa = Integer.parseInt(DoktorCOMBO.getSelectedItem().toString().substring(0, DoktorCOMBO.getSelectedItem().toString().indexOf(":")));
            Doctor d = new Doctor(Users.getDoctorByHisID(id_medyka_z_combosa, this), this);

        calendar_wszyscylekarze.clear();
            calendar_wszyscylekarze.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_wszyscylekarze.getCalendar().addMouseListener(new PopUpListener_WszyscyLekarze(calendar_wszyscylekarze, new Doctor(Users.getDoctorByHisID(id_medyka_z_combosa, this), this), user));
            calendar_wszyscylekarze.update(d.getHoliday(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate()),
            calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_wszyscylekarze.update(d.getPacientsVisit(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate()),
            calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate())), JCalendar.CellType.VISIT);
            calendar_wszyscylekarze.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);
        calendar_wszyscylekarze.repaint();
        date_wszyscylekarze.setText(df.format(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate())) + " - "
            + df.format(calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate()))); 
        
    }//GEN-LAST:event_prev_wszyscylekarzeActionPerformed

    private void next_wszyscylekarzeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_wszyscylekarzeActionPerformed
        calendar_wszyscylekarze.nextWeek();
         int id_medyka_z_combosa = Integer.parseInt(DoktorCOMBO.getSelectedItem().toString().substring(0, DoktorCOMBO.getSelectedItem().toString().indexOf(":")));
            Doctor d = new Doctor(Users.getDoctorByHisID(id_medyka_z_combosa, this), this);

        calendar_wszyscylekarze.clear();
            calendar_wszyscylekarze.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_wszyscylekarze.getCalendar().addMouseListener(new PopUpListener_WszyscyLekarze(calendar_wszyscylekarze, new Doctor(Users.getDoctorByHisID(id_medyka_z_combosa, this), this), user));
            calendar_wszyscylekarze.update(d.getHoliday(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate()),
            calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_wszyscylekarze.update(d.getPacientsVisit(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate()),
            calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate())), JCalendar.CellType.VISIT);
            calendar_wszyscylekarze.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);
        calendar_wszyscylekarze.repaint();
        date_wszyscylekarze.setText(df.format(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate())) + " - "
            + df.format(calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate()))); 
        
    }//GEN-LAST:event_next_wszyscylekarzeActionPerformed

    private void PacjentPanel_3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PacjentPanel_3MouseClicked
// TODO add your handling code here:
    }//GEN-LAST:event_PacjentPanel_3MouseClicked

    private void Panel_WizytaDomowaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Panel_WizytaDomowaMouseClicked

    }//GEN-LAST:event_Panel_WizytaDomowaMouseClicked

    private void DoctorTabPaneMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_DoctorTabPaneMouseClicked
        // TODO add your handling code here:
        
        Doctor d = new Doctor(user, this);
        calendar = new JCalendar(new JCalendar.Hour(6, 0), new JCalendar.Hour(20, 30), 15);
        if (jTabbedPane1.getSelectedIndex() == 1) {
            calendar.getCalendar().addMouseListener(new PopUpListener(calendar, new Doctor(user, this), false));
            calendar.update(d.getHoliday(calendar.getFirstDayOfWeek(calendar.getDate()),
                calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.HOLIDAY);
        calendar.update(d.getPacientsVisit(calendar.getFirstDayOfWeek(calendar.getDate()),
            calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.VISIT);
    date.setText(df.format(calendar.getFirstDayOfWeek(calendar.getDate())) + " - "
        + df.format(calendar.getLastDayOfWeek(calendar.getDate())));
        scCalendar.setViewportView(calendar.getCalendar());
        } else {
            calendar.getCalendar().addMouseListener(new PopUpListener(calendar, new Doctor(user, this), true));
            calendar.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            scTerms.setViewportView(calendar.getCalendar());
        }
    }//GEN-LAST:event_DoctorTabPaneMouseClicked

    private void calendarFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_calendarFocusGained

    }//GEN-LAST:event_calendarFocusGained

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        calendar.nextWeek();
        Doctor d = new Doctor(user, this);
        calendar.clear();
        calendar.update(d.getHoliday(calendar.getFirstDayOfWeek(calendar.getDate()),
            calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.HOLIDAY);
    calendar.update(d.getPacientsVisit(calendar.getFirstDayOfWeek(calendar.getDate()),
        calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.VISIT);
        calendar.repaint();
        date.setText(df.format(calendar.getFirstDayOfWeek(calendar.getDate())) + " - "
            + df.format(calendar.getLastDayOfWeek(calendar.getDate())));
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        calendar.prevWeek();
        Doctor d = new Doctor(user, this);
        calendar.clear();
        calendar.update(d.getHoliday(calendar.getFirstDayOfWeek(calendar.getDate()),
            calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.HOLIDAY);
    calendar.update(d.getPacientsVisit(calendar.getFirstDayOfWeek(calendar.getDate()),
        calendar.getLastDayOfWeek(calendar.getDate())), JCalendar.CellType.VISIT);
        calendar.repaint();
        date.setText(df.format(calendar.getFirstDayOfWeek(calendar.getDate())) + " - "
            + df.format(calendar.getLastDayOfWeek(calendar.getDate())));
    }//GEN-LAST:event_jButton3ActionPerformed

    private void keyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_keyReleased
        Doctor d = new Doctor(user, this);
        JTable table = null;
        if (today) {
            table = JTableUtil.createTable(d.getTodayVisit(jTextField1.getText()));
            table.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    if (e.getClickCount() == 2) {
                        JTable target = (JTable) e.getSource();
                        int row = target.getSelectedRow();
                        Doctor.addHistory(Integer.parseInt(target.getValueAt(row, 0).toString()), user.getID(), (String) target.getValueAt(row, 1));
                        int visitID = Visit.getVisitId(Integer.parseInt(target.getValueAt(row, 0).toString()), user.getID(), (String) target.getValueAt(row, 1));
                        new PatientForm(visitID, Integer.parseInt(target.getValueAt(row, 0).toString()), true).setVisible(true);
                    }
                }
            });
        } else {
            try {
                table = JTableUtil.createTable(d.getPatients(jTextField1.getText()));
                table.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        if (e.getClickCount() == 2) {
                            JTable target = (JTable) e.getSource();
                            int row = target.getSelectedRow();
                            Doctor.addHistory(Integer.parseInt(target.getValueAt(row, 0).toString()), user.getID(), (String) target.getValueAt(row, 1));
                            int visitID = Visit.getVisitId(Integer.parseInt(target.getValueAt(row, 0).toString()), user.getID(), (String) target.getValueAt(row, 1));
                            new PatientForm(visitID, Integer.parseInt(target.getValueAt(row, 0).toString()), true).setVisible(true);
                        }
                    }
                });
            } catch (SQLException ex) {
                ErrorLogger.getInstance().log("Bład połączenia z bazą danych", true, this);
            }
        }
        scPacjenci.setViewportView(table);
    }//GEN-LAST:event_keyReleased

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        jTextField1.setEnabled(true);
        Doctor d = new Doctor(user, this);
        today = true;
        JTable table = JTableUtil.createTable(d.getTodayVisit(""));
        table.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 2) {
                    JTable target = (JTable) e.getSource();
                    int row = target.getSelectedRow();
                    Doctor.addHistory(Integer.parseInt(target.getValueAt(row, 0).toString()), user.getID(), (String) target.getValueAt(row, 1));
                    int visitID = Visit.getVisitId(Integer.parseInt(target.getValueAt(row, 0).toString()), user.getID(), (String) target.getValueAt(row, 1));
                    new PatientForm(visitID, Integer.parseInt(target.getValueAt(row, 0).toString()), true).setVisible(true);
                }
            }
        });
        scPacjenci.setViewportView(table);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        jTextField1.setEnabled(true);
        Doctor d = new Doctor(user, this);
        today = false;
        try {
            JTable table = JTableUtil.createTable(d.getPatients(""));
            scPacjenci.setViewportView(table);
            table.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    if (e.getClickCount() == 2) {
                        JTable target = (JTable) e.getSource();
                        int row = target.getSelectedRow();
                        new PatientForm(0, Integer.parseInt(target.getValueAt(row, 0).toString()), false).setVisible(true);
                    }
                }
            });
        } catch (SQLException ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        jTextField1.setEnabled(false);
        Doctor d = new Doctor(user,this);
        JTable table = JTableUtil.createTable(d.getPacientsTodayHomeVisit());
        table.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 2) {
                    JTable target = (JTable) e.getSource();
                    int row = target.getSelectedRow();
                    new PatientForm(0,Integer.parseInt(target.getValueAt(row, 0).toString()),false).setVisible(true); 
                }
            }
        });
        scPacjenci.setViewportView(table);
    }//GEN-LAST:event_jButton5ActionPerformed

    private void next_badania_wolneterminyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_badania_wolneterminyActionPerformed
        calendar_badania_wolneterminy.nextWeek();
            int id_badania = Integer.parseInt(COMBO_badania_wolneterminy.getSelectedItem().toString().substring(0, COMBO_badania_wolneterminy.getSelectedItem().toString().indexOf(":")));
            WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_badania_wolneterminy.clear();
            calendar_badania_wolneterminy.getCalendar().addMouseListener(new PopUpListener_Badania_WolneTerminy(calendar_badania_wolneterminy, user, id_badania));        
            calendar_badania_wolneterminy.update(d.getBadania(id_badania, calendar_badania_wolneterminy.getFirstDayOfWeek(calendar_badania_wolneterminy.getDate()),
            calendar_badania_wolneterminy.getLastDayOfWeek(calendar_badania_wolneterminy.getDate())), JCalendar.CellType.VISIT);                 
        calendar_badania_wolneterminy.repaint();
        

            data_badania_wolneterminy.setText(df.format(calendar_badania_wolneterminy.getFirstDayOfWeek(calendar_badania_wolneterminy.getDate())) + " - "
            + df.format(calendar_badania_wolneterminy.getLastDayOfWeek(calendar_badania_wolneterminy.getDate())));     
 
    }//GEN-LAST:event_next_badania_wolneterminyActionPerformed

    private void prev_badania_wolneterminyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_badania_wolneterminyActionPerformed
        calendar_badania_wolneterminy.prevWeek();
            int id_badania = Integer.parseInt(COMBO_badania_wolneterminy.getSelectedItem().toString().substring(0, COMBO_badania_wolneterminy.getSelectedItem().toString().indexOf(":")));
            WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_badania_wolneterminy.clear();
            calendar_badania_wolneterminy.getCalendar().addMouseListener(new PopUpListener_Badania_WolneTerminy(calendar_badania_wolneterminy, user, id_badania));        
            calendar_badania_wolneterminy.update(d.getBadania(id_badania, calendar_badania_wolneterminy.getFirstDayOfWeek(calendar_badania_wolneterminy.getDate()),
            calendar_badania_wolneterminy.getLastDayOfWeek(calendar_badania_wolneterminy.getDate())), JCalendar.CellType.VISIT);                 
        calendar_badania_wolneterminy.repaint();
        

            data_badania_wolneterminy.setText(df.format(calendar_badania_wolneterminy.getFirstDayOfWeek(calendar_badania_wolneterminy.getDate())) + " - "
            + df.format(calendar_badania_wolneterminy.getLastDayOfWeek(calendar_badania_wolneterminy.getDate())));     
    }//GEN-LAST:event_prev_badania_wolneterminyActionPerformed

    private void prev_wszyscylekarze2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_wszyscylekarze2ActionPerformed
        calendar_wizytydomowe.prevWeek();
        Doctor d = new Doctor(Users.getDoctorByPacient(user.getID(), this), this);
        calendar_wizytydomowe.clear();
            calendar_wizytydomowe.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_wizytydomowe.getCalendar().addMouseListener(new PopUpListener_WizytyDomowe(calendar_wizytydomowe, new Doctor(Users.getDoctorByPacient(user.getID(), this), this), user));
            calendar_wizytydomowe.update(d.getHoliday(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate()),
            calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_wizytydomowe.update(d.getPacientsVisit(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate()),
            calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())), JCalendar.CellType.VISIT);
            calendar_wizytydomowe.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);
        calendar_wizytydomowe.repaint();
        date_wizytydomowe.setText(df.format(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate())) + " - "
            + df.format(calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate()))); 
    }//GEN-LAST:event_prev_wszyscylekarze2ActionPerformed

    private void next_wszyscylekarze2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_wszyscylekarze2ActionPerformed
        calendar_wizytydomowe.nextWeek();
        Doctor d = new Doctor(Users.getDoctorByPacient(user.getID(), this), this);
        calendar_wizytydomowe.clear();
            calendar_wizytydomowe.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_wizytydomowe.getCalendar().addMouseListener(new PopUpListener_WizytyDomowe(calendar_wizytydomowe, new Doctor(Users.getDoctorByPacient(user.getID(), this), this), user));
            calendar_wizytydomowe.update(d.getHoliday(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate()),
            calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_wizytydomowe.update(d.getPacientsVisit(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate()),
            calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())), JCalendar.CellType.VISIT);
            calendar_wizytydomowe.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);
        calendar_wizytydomowe.repaint();
        date_wizytydomowe.setText(df.format(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate())) + " - "
            + df.format(calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate()))); 
    }//GEN-LAST:event_next_wszyscylekarze2ActionPerformed

    private void Badania_wolneterminy_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Badania_wolneterminy_buttonActionPerformed
            int id_badania = Integer.parseInt(COMBO_badania_wolneterminy.getSelectedItem().toString().substring(0, COMBO_badania_wolneterminy.getSelectedItem().toString().indexOf(":")));
            WynikiBadanProstych d = new WynikiBadanProstych(this);
            calendar_badania_wolneterminy = new JCalendar(new JCalendar.Hour(10, 0), new JCalendar.Hour(15, 30),30);
            calendar_badania_wolneterminy.getCalendar().addMouseListener(new PopUpListener_Badania_WolneTerminy(calendar_badania_wolneterminy, user, id_badania));        
            calendar_badania_wolneterminy.update(d.getBadania(id_badania, calendar_badania_wolneterminy.getFirstDayOfWeek(calendar_badania_wolneterminy.getDate()),
            calendar_badania_wolneterminy.getLastDayOfWeek(calendar_badania_wolneterminy.getDate())), JCalendar.CellType.VISIT);                 
        data_badania_wolneterminy.setText(df.format(calendar_badania_wolneterminy.getFirstDayOfWeek(calendar_badania_wolneterminy.getDate())) + " - "
        + df.format(calendar_badania_wolneterminy.getLastDayOfWeek(calendar_badania_wolneterminy.getDate())));
        scCalendar_badania_wolneterminy.setViewportView(calendar_badania_wolneterminy.getCalendar());
    }//GEN-LAST:event_Badania_wolneterminy_buttonActionPerformed

    private void Button_swojlekarzActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_swojlekarzActionPerformed
        Doctor d = new Doctor(Users.getDoctorByPacient(user.getID(), this), this);
        calendar_swojlekarz = new JCalendar(new JCalendar.Hour(6, 0), new JCalendar.Hour(20, 30),15);
            calendar_swojlekarz.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_swojlekarz.getCalendar().addMouseListener(new PopUpListener_WizytySwojlekarz(calendar_swojlekarz, new Doctor(Users.getDoctorByPacient(user.getID(), this), this), user));
            calendar_swojlekarz.update(d.getHoliday(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate()),
            calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_swojlekarz.update(d.getPacientsVisit(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate()),
            calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())), JCalendar.CellType.VISIT);
            calendar_swojlekarz.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);

                        
       date_swojlekarz.setText(df.format(calendar_swojlekarz.getFirstDayOfWeek(calendar_swojlekarz.getDate())) + " - "
        + df.format(calendar_swojlekarz.getLastDayOfWeek(calendar_swojlekarz.getDate())));
        scCalendar_swojlekarz.setViewportView(calendar_swojlekarz.getCalendar());


    }//GEN-LAST:event_Button_swojlekarzActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        
        Doctor d = new Doctor(Users.getDoctorByPacient(user.getID(), this), this);
        calendar_wizytydomowe = new JCalendar(new JCalendar.Hour(6, 0), new JCalendar.Hour(20, 30),15);
            calendar_wizytydomowe.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_wizytydomowe.getCalendar().addMouseListener(new PopUpListener_WizytyDomowe(calendar_wizytydomowe, new Doctor(Users.getDoctorByPacient(user.getID(), this), this), user));
            calendar_wizytydomowe.update(d.getHoliday(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate()),
            calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_wizytydomowe.update(d.getPacientsVisit(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate()),
            calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())), JCalendar.CellType.VISIT);
            calendar_wizytydomowe.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);

                        
       date_wizytydomowe.setText(df.format(calendar_wizytydomowe.getFirstDayOfWeek(calendar_wizytydomowe.getDate())) + " - "
        + df.format(calendar_wizytydomowe.getLastDayOfWeek(calendar_wizytydomowe.getDate())));
        scCalendar_wizytydomowe.setViewportView(calendar_wizytydomowe.getCalendar());


    }//GEN-LAST:event_jButton9ActionPerformed

    private void PacjentPanel_4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PacjentPanel_4MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_PacjentPanel_4MouseClicked

    private void Button_badaniertgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_badaniertgActionPerformed
            WynikiBadanProstych d = new WynikiBadanProstych(this);
            calendar_badaniertg = new JCalendar(new JCalendar.Hour(8, 0), new JCalendar.Hour(15, 30),30);
            calendar_badaniertg.getCalendar().addMouseListener(new PopUpListener_BadanieRTG(calendar_badaniertg, user));        
            calendar_badaniertg.update(d.getBadaniaRTG(calendar_badaniertg.getFirstDayOfWeek(calendar_badaniertg.getDate()),
            calendar_badaniertg.getLastDayOfWeek(calendar_badaniertg.getDate())), JCalendar.CellType.VISIT);                 
        date_badaniertg.setText(df.format(calendar_badaniertg.getFirstDayOfWeek(calendar_badaniertg.getDate())) + " - "
        + df.format(calendar_badaniertg.getLastDayOfWeek(calendar_badaniertg.getDate())));
        scCalendar_badaniertg.setViewportView(calendar_badaniertg.getCalendar());

    }//GEN-LAST:event_Button_badaniertgActionPerformed

    private void next_badaniertgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_badaniertgActionPerformed
                calendar_badaniertg.nextWeek();
        WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_badaniertg.clear();
            calendar_badaniertg.getCalendar().addMouseListener(new PopUpListener_BadanieRTG(calendar_badaniertg, user));        
            calendar_badaniertg.update(d.getBadaniaRTG(calendar_badaniertg.getFirstDayOfWeek(calendar_badaniertg.getDate()),
            calendar_badaniertg.getLastDayOfWeek(calendar_badaniertg.getDate())), JCalendar.CellType.VISIT); 
        calendar_badaniertg.repaint();
           date_badaniertg.setText(df.format(calendar_badaniertg.getFirstDayOfWeek(calendar_badaniertg.getDate())) + " - "
            + df.format(calendar_badaniertg.getLastDayOfWeek(calendar_badaniertg.getDate())));     
 
    }//GEN-LAST:event_next_badaniertgActionPerformed

    private void prev_badaniertgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_badaniertgActionPerformed
        
        calendar_badaniertg.prevWeek();
        WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_badaniertg.clear();
            calendar_badaniertg.getCalendar().addMouseListener(new PopUpListener_BadanieRTG(calendar_badaniertg, user));        
            calendar_badaniertg.update(d.getBadaniaRTG(calendar_badaniertg.getFirstDayOfWeek(calendar_badaniertg.getDate()),
            calendar_badaniertg.getLastDayOfWeek(calendar_badaniertg.getDate())), JCalendar.CellType.VISIT); 
        calendar_badaniertg.repaint();
           date_badaniertg.setText(df.format(calendar_badaniertg.getFirstDayOfWeek(calendar_badaniertg.getDate())) + " - "
            + df.format(calendar_badaniertg.getLastDayOfWeek(calendar_badaniertg.getDate())));     
 
    }//GEN-LAST:event_prev_badaniertgActionPerformed

    private void prev_badanieusgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_badanieusgActionPerformed
               calendar_badanieusg.prevWeek();
        WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_badanieusg.clear();
            calendar_badanieusg.getCalendar().addMouseListener(new PopUpListener_BadanieUSG(calendar_badanieusg, user));        
            calendar_badanieusg.update(d.getBadaniaUSG(calendar_badanieusg.getFirstDayOfWeek(calendar_badanieusg.getDate()),
            calendar_badanieusg.getLastDayOfWeek(calendar_badanieusg.getDate())), JCalendar.CellType.VISIT); 
        calendar_badanieusg.repaint();
           date_badanieusg.setText(df.format(calendar_badanieusg.getFirstDayOfWeek(calendar_badanieusg.getDate())) + " - "
            + df.format(calendar_badanieusg.getLastDayOfWeek(calendar_badanieusg.getDate())));     
 
    }//GEN-LAST:event_prev_badanieusgActionPerformed

    private void next_badanieusgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_badanieusgActionPerformed
               calendar_badanieusg.nextWeek();
        WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_badanieusg.clear();
            calendar_badanieusg.getCalendar().addMouseListener(new PopUpListener_BadanieUSG(calendar_badanieusg, user));        
            calendar_badanieusg.update(d.getBadaniaUSG(calendar_badanieusg.getFirstDayOfWeek(calendar_badanieusg.getDate()),
            calendar_badanieusg.getLastDayOfWeek(calendar_badanieusg.getDate())), JCalendar.CellType.VISIT); 
        calendar_badanieusg.repaint();
           date_badanieusg.setText(df.format(calendar_badanieusg.getFirstDayOfWeek(calendar_badanieusg.getDate())) + " - "
            + df.format(calendar_badanieusg.getLastDayOfWeek(calendar_badanieusg.getDate())));     
 
    }//GEN-LAST:event_next_badanieusgActionPerformed

    private void Button_badanieusgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_badanieusgActionPerformed
      WynikiBadanProstych d = new WynikiBadanProstych(this);
            calendar_badanieusg = new JCalendar(new JCalendar.Hour(15, 0), new JCalendar.Hour(19, 30),15);
            calendar_badanieusg.getCalendar().addMouseListener(new PopUpListener_BadanieUSG(calendar_badanieusg, user));        
            calendar_badanieusg.update(d.getBadaniaUSG(calendar_badanieusg.getFirstDayOfWeek(calendar_badanieusg.getDate()),
            calendar_badanieusg.getLastDayOfWeek(calendar_badanieusg.getDate())), JCalendar.CellType.VISIT);                 
        date_badanieusg.setText(df.format(calendar_badanieusg.getFirstDayOfWeek(calendar_badanieusg.getDate())) + " - "
        + df.format(calendar_badanieusg.getLastDayOfWeek(calendar_badanieusg.getDate())));
        scCalendar_badanieusg.setViewportView(calendar_badanieusg.getCalendar());

    }//GEN-LAST:event_Button_badanieusgActionPerformed

    private void Button_szczepionkiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_szczepionkiActionPerformed
        int id_szczepionki = Integer.parseInt(COMBO_szczepionki.getSelectedItem().toString().substring(0, COMBO_szczepionki.getSelectedItem().toString().indexOf(":")));

        WynikiBadanProstych d = new WynikiBadanProstych(this);
            calendar_szczepionki = new JCalendar(new JCalendar.Hour(17, 0), new JCalendar.Hour(19, 30),10);
            calendar_szczepionki.getCalendar().addMouseListener(new PopUpListener_Szczepionki(calendar_szczepionki, user, id_szczepionki));        
            calendar_szczepionki.update(d.getSzczepionki(calendar_szczepionki.getFirstDayOfWeek(calendar_szczepionki.getDate()),
            calendar_szczepionki.getLastDayOfWeek(calendar_szczepionki.getDate())), JCalendar.CellType.VISIT);                 
        date_szczepionki.setText(df.format(calendar_szczepionki.getFirstDayOfWeek(calendar_szczepionki.getDate())) + " - "
        + df.format(calendar_szczepionki.getLastDayOfWeek(calendar_szczepionki.getDate())));
        scCalendar_szczepionki.setViewportView(calendar_szczepionki.getCalendar());


    }//GEN-LAST:event_Button_szczepionkiActionPerformed

    private void prev_szczepionkiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prev_szczepionkiActionPerformed
        calendar_szczepionki.prevWeek();
        int id_szczepionki = Integer.parseInt(COMBO_szczepionki.getSelectedItem().toString().substring(0, COMBO_szczepionki.getSelectedItem().toString().indexOf(":")));
        WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_szczepionki.clear();
            calendar_szczepionki.getCalendar().addMouseListener(new PopUpListener_Szczepionki(calendar_szczepionki, user, id_szczepionki));        
            calendar_szczepionki.update(d.getSzczepionki(calendar_szczepionki.getFirstDayOfWeek(calendar_szczepionki.getDate()),
            calendar_szczepionki.getLastDayOfWeek(calendar_szczepionki.getDate())), JCalendar.CellType.VISIT);                 
        calendar_szczepionki.repaint();
    date_szczepionki.setText(df.format(calendar_szczepionki.getFirstDayOfWeek(calendar_szczepionki.getDate())) + " - "
     + df.format(calendar_szczepionki.getLastDayOfWeek(calendar_szczepionki.getDate())));     
 
    }//GEN-LAST:event_prev_szczepionkiActionPerformed

    private void next_szczepionkiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_next_szczepionkiActionPerformed
                calendar_szczepionki.nextWeek();
        int id_szczepionki = Integer.parseInt(COMBO_szczepionki.getSelectedItem().toString().substring(0, COMBO_szczepionki.getSelectedItem().toString().indexOf(":")));
        WynikiBadanProstych d = new WynikiBadanProstych(this);
        calendar_szczepionki.clear();
            calendar_szczepionki.getCalendar().addMouseListener(new PopUpListener_Szczepionki(calendar_szczepionki, user, id_szczepionki));        
            calendar_szczepionki.update(d.getSzczepionki(calendar_szczepionki.getFirstDayOfWeek(calendar_szczepionki.getDate()),
            calendar_szczepionki.getLastDayOfWeek(calendar_szczepionki.getDate())), JCalendar.CellType.VISIT);                 
        calendar_szczepionki.repaint();
    date_szczepionki.setText(df.format(calendar_szczepionki.getFirstDayOfWeek(calendar_szczepionki.getDate())) + " - "
     + df.format(calendar_szczepionki.getLastDayOfWeek(calendar_szczepionki.getDate())));     
 
    }//GEN-LAST:event_next_szczepionkiActionPerformed

    private void Panel_WizytaDomowa1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Panel_WizytaDomowa1MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_Panel_WizytaDomowa1MouseClicked

    private void Stat1_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat1_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat1 = st.stat1();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat1_wynik.setViewportView(Stat1);
    }//GEN-LAST:event_Stat1_buttonActionPerformed

    private void Stat2_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat2_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat2 = st.stat2();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat2_wynik.setViewportView(Stat2);
    }//GEN-LAST:event_Stat2_buttonActionPerformed

    private void Stat3_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat3_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat3 = st.stat3();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat3_wynik.setViewportView(Stat3);
    }//GEN-LAST:event_Stat3_buttonActionPerformed

    private void Stat4_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat4_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat4 = st.stat4();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat4_wynik.setViewportView(Stat4);
    }//GEN-LAST:event_Stat4_buttonActionPerformed

    private void Stat5_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat5_buttonActionPerformed

        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat5 = st.stat5(Integer.parseInt(Stat5_b1.getText()),Integer.parseInt(Stat5_b2.getText()));
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat5_wynik.setViewportView(Stat5);
    }//GEN-LAST:event_Stat5_buttonActionPerformed

    private void Stat6_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat6_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat6 = st.stat6();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat6_wynik.setViewportView(Stat6);
    }//GEN-LAST:event_Stat6_buttonActionPerformed

    private void Stat7_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat7_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat7 = st.stat7();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat7_wynik.setViewportView(Stat7);
    }//GEN-LAST:event_Stat7_buttonActionPerformed

    private void Stat8_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat8_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat8 = st.stat8();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat8_wynik.setViewportView(Stat8);
    }//GEN-LAST:event_Stat8_buttonActionPerformed

    private void Stat10_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat10_buttonActionPerformed
        ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            Stat10 = st.stat10();
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat10_wynik.setViewportView(Stat10);
    }//GEN-LAST:event_Stat10_buttonActionPerformed

    private void Stat9_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat9_buttonActionPerformed
       ObslugaStatystyk st = new ObslugaStatystyk();
        try {
            //System.out.println(df.parse(Stat9_data.getText()));
            Stat9 = st.stat9(Stat9_data.getText());
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        Stat9_wynik.setViewportView(Stat9);
    }//GEN-LAST:event_Stat9_buttonActionPerformed

    private void Stat9_dataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Stat9_dataActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Stat9_dataActionPerformed

    private void PacjentPanel_6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PacjentPanel_6MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_PacjentPanel_6MouseClicked

    private void DoktorCOMBOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DoktorCOMBOActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_DoktorCOMBOActionPerformed

    private void rejestracja_radio1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_radio1ActionPerformed
        rejestracja_doctor_list.setEnabled(false);
    }//GEN-LAST:event_rejestracja_radio1ActionPerformed

    private void rejestracja_radio2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_radio2ActionPerformed
       rejestracja_doctor_list.setEnabled(true);
    }//GEN-LAST:event_rejestracja_radio2ActionPerformed

    private void rejestracja_wizyta_b1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_b1ActionPerformed
   pomoc_id_pacjenta.setVisible(false);
        jLabel156.setEnabled(false);
    rejestracja_radio1.setEnabled(false);
    rejestracja_radio1.setSelected(true);
    rejestracja_radio2.setEnabled(false);
    rejestracja_doctor_list.setEnabled(false);
    otworz_kalendarz_rejestracji.setEnabled(false);
        
        RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty = rr.get1(rejestracja_wizyta_nazwisko.getText());
            RejestracjaRecznaWizytyModel = RejestracjaWizyty;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel());
        RejestracjaRecznaWizytyModel.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list.setViewportView(RejestracjaWizyty);
    }//GEN-LAST:event_rejestracja_wizyta_b1ActionPerformed

    private void rejestracja_wizyta_b2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_b2ActionPerformed
     pomoc_id_pacjenta.setVisible(false);
        jLabel156.setEnabled(false);
    rejestracja_radio1.setEnabled(false);
    rejestracja_radio1.setSelected(true);
    rejestracja_radio2.setEnabled(false);
    rejestracja_doctor_list.setEnabled(false);
    otworz_kalendarz_rejestracji.setEnabled(false);
        RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty = rr.get2(rejestracja_wizyta_pesel.getText());
            RejestracjaRecznaWizytyModel = RejestracjaWizyty;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel());
        RejestracjaRecznaWizytyModel.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list.setViewportView(RejestracjaWizyty);
    }//GEN-LAST:event_rejestracja_wizyta_b2ActionPerformed

    private void rejestracja_wizyta_b3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_b3ActionPerformed
    pomoc_id_pacjenta.setVisible(false);
        jLabel156.setEnabled(false);
    rejestracja_radio1.setEnabled(false);
    rejestracja_radio1.setSelected(true);
    rejestracja_radio2.setEnabled(false);
    rejestracja_doctor_list.setEnabled(false);
    otworz_kalendarz_rejestracji.setEnabled(false);
        RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty = rr.get3(rejestracja_wizyta_ubezp.getText());
            RejestracjaRecznaWizytyModel = RejestracjaWizyty;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel());
        RejestracjaRecznaWizytyModel.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list.setViewportView(RejestracjaWizyty);
    }//GEN-LAST:event_rejestracja_wizyta_b3ActionPerformed

    private void rejestracja_wizyta_ballActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_ballActionPerformed
   pomoc_id_pacjenta.setVisible(false);
        jLabel156.setEnabled(false);
    rejestracja_radio1.setEnabled(false);
    rejestracja_radio1.setSelected(true);
    rejestracja_radio2.setEnabled(false);
    rejestracja_doctor_list.setEnabled(false);
    otworz_kalendarz_rejestracji.setEnabled(false);
        RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty = rr.get4();
            RejestracjaRecznaWizytyModel = RejestracjaWizyty;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel());
        RejestracjaRecznaWizytyModel.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list.setViewportView(RejestracjaWizyty);
    }//GEN-LAST:event_rejestracja_wizyta_ballActionPerformed

    private void rejestracja_wizyta_b4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_b4ActionPerformed
      
        RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty1 = rr.get1(rejestracja_wizyta_nazwisko1.getText());
            RejestracjaRecznaWizytyModel1 = RejestracjaWizyty1;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel1.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel1());
        RejestracjaRecznaWizytyModel1.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list1.setViewportView(RejestracjaWizyty1);
    }//GEN-LAST:event_rejestracja_wizyta_b4ActionPerformed

    private void rejestracja_wizyta_b5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_b5ActionPerformed
       RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty1 = rr.get2(rejestracja_wizyta_pesel1.getText());
            RejestracjaRecznaWizytyModel1 = RejestracjaWizyty1;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel1.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel1());
        RejestracjaRecznaWizytyModel1.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list1.setViewportView(RejestracjaWizyty1);
    }//GEN-LAST:event_rejestracja_wizyta_b5ActionPerformed

    private void rejestracja_wizyta_b6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rejestracja_wizyta_b6ActionPerformed
        RejestracjaReczna rr = new RejestracjaReczna(this);
        try {
            RejestracjaWizyty1 = rr.get3(rejestracja_wizyta_ubezp1.getText());
            RejestracjaRecznaWizytyModel1 = RejestracjaWizyty1;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = RejestracjaRecznaWizytyModel1.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel1());
        RejestracjaRecznaWizytyModel1.setSelectionModel(listSelectionModel);
        rejestracja_wizyta_pacjent_list1.setViewportView(RejestracjaWizyty1);
    }//GEN-LAST:event_rejestracja_wizyta_b6ActionPerformed

    private void otworz_kalendarz_rejestracjiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_otworz_kalendarz_rejestracjiActionPerformed
    int id_pacjenta = Integer.parseInt(pomoc_id_pacjenta.getText());
    int id_doktora;
    if(rejestracja_radio1.isSelected()) {
       id_doktora = Users.getDoctorByPacient_ID(id_pacjenta);
    } else {
       id_doktora = Integer.parseInt(rejestracja_doctor_list.getSelectedItem().toString().substring(0, rejestracja_doctor_list.getSelectedItem().toString().indexOf(":"))); 
    }       
        new RejestracjaReczna_wizyty(id_pacjenta,id_doktora).setVisible(true); 
    }//GEN-LAST:event_otworz_kalendarz_rejestracjiActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        jButton7.setEnabled(false);
            Doctor.delSwojLekarz_Uzytkownik(jLabel163.getText(),Integer.parseInt(jLabel162.getText()));
                           try {
                                RejestracjaWizyty2 = NadchodzaceTerminy.get1(Integer.parseInt(jLabel162.getText()));
                                RejestracjaRecznaWizytyModel2 = RejestracjaWizyty2;
                            } catch (Exception ex) {
                                Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                            }
                            listSelectionModel = RejestracjaRecznaWizytyModel2.getSelectionModel();
                            listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel2());
                            RejestracjaRecznaWizytyModel2.setSelectionModel(listSelectionModel);
                            rejestracja_wizyta_pacjent_list2.setViewportView(RejestracjaWizyty2);                       
    }//GEN-LAST:event_jButton7ActionPerformed

    private void PacjentPanel_8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PacjentPanel_8MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_PacjentPanel_8MouseClicked

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        WynikiBadanProstych.addBadanieMocz(
            Integer.parseInt(jLabel232.getText()),
            mo1.getText(),
            mo2.getText(),
            mo3.getText(),
            mo4.getText(),
            mo5.getText(),
            mo6.getText(),
            mo7.getText(),
            mo8.getText(),
            mo9.getText(),
            mo10.getText(),
            mo11.getText(),
            mo12.getText(),
            mo13.getText(),
            mo14.getText());

        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getBadaniaMocz();
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanMoczAdmin  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanMoczAdmin.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshAdminWynikiBadanieMoczu());
        WynikiBadanMoczAdmin.setSelectionModel(listSelectionModel);
        lista_badaniamoczu_bezwpisu.setViewportView(WynikiBadanMoczAdmin);

        jLabel230.setText("");
        jLabel231.setText("");
        mo1.setText(""); mo2.setText(""); mo3.setText(""); mo4.setText(""); mo5.setText(""); mo6.setText(""); mo7.setText("");
        mo8.setText(""); mo9.setText(""); mo10.setText(""); mo11.setText(""); mo12.setText(""); mo13.setText(""); mo14.setText("");
    }//GEN-LAST:event_jButton10ActionPerformed

    private void pacjent_historia_wizyt_aktualizuj5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizuj5ActionPerformed
        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getBadaniaMocz();
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanMoczAdmin  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanMoczAdmin.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshAdminWynikiBadanieMoczu());
        WynikiBadanMoczAdmin.setSelectionModel(listSelectionModel);
        lista_badaniamoczu_bezwpisu.setViewportView(WynikiBadanMoczAdmin);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizuj5ActionPerformed

    private void mo14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo14ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo14ActionPerformed

    private void mo13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo13ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo13ActionPerformed

    private void mo10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo10ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo10ActionPerformed

    private void mo8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo8ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo8ActionPerformed

    private void mo7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo7ActionPerformed

    private void mo3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo3ActionPerformed

    private void mo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mo1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mo1ActionPerformed

    private void li1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_li1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_li1ActionPerformed

    private void li3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_li3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_li3ActionPerformed

    private void pacjent_historia_wizyt_aktualizuj6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizuj6ActionPerformed
        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getLipidogram();
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanLipidogramAdmin  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        listSelectionModel = WynikiBadanLipidogramAdmin.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshAdminWynikiLipidogram());
        WynikiBadanLipidogramAdmin.setSelectionModel(listSelectionModel);
        lista_badaniamoczu_bezwpisu1.setViewportView(WynikiBadanLipidogramAdmin);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizuj6ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
       WynikiBadanProstych.addLipidogram(
            Integer.parseInt(jLabel180.getText()),
            li1.getText(),
            li2.getText(),
            li3.getText(),
            li4.getText(),
            li5.getText());

        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getLipidogram();
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanLipidogramAdmin  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanLipidogramAdmin.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshAdminWynikiLipidogram());
        WynikiBadanLipidogramAdmin.setSelectionModel(listSelectionModel);
        lista_badaniamoczu_bezwpisu1.setViewportView(WynikiBadanLipidogramAdmin);

        jLabel164.setText("");
        jLabel179.setText("");
        li1.setText(""); li2.setText(""); li3.setText(""); li4.setText(""); li5.setText("");
    }//GEN-LAST:event_jButton11ActionPerformed

    private void kr1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr1ActionPerformed

    private void kr3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr3ActionPerformed

    private void kr7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr7ActionPerformed

    private void kr8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr8ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr8ActionPerformed

    private void kr10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr10ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr10ActionPerformed

    private void kr13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr13ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr13ActionPerformed

    private void kr14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr14ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr14ActionPerformed

    private void pacjent_historia_wizyt_aktualizuj10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pacjent_historia_wizyt_aktualizuj10ActionPerformed
        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getMorfologia();
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanMorfologiaAdmin  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanMorfologiaAdmin.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshAdminWynikiMorfologia());
        WynikiBadanMorfologiaAdmin.setSelectionModel(listSelectionModel);
        lista_badaniamoczu_bezwpisu3.setViewportView(WynikiBadanMorfologiaAdmin);
    }//GEN-LAST:event_pacjent_historia_wizyt_aktualizuj10ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
       WynikiBadanProstych.addBadanieMorfologia(
            Integer.parseInt(jLabel181.getText()),
            kr1.getText(),
            kr2.getText(),
            kr3.getText(),
            kr4.getText(),
            kr5.getText(),
            kr6.getText(),
            kr7.getText(),
            kr8.getText(),
            kr9.getText(),
            kr10.getText(),
            kr11.getText(),
            kr12.getText(),
            kr13.getText(),
            kr14.getText(),
            kr15.getText(),
            kr16.getText(),
            kr17.getText(),
            kr18.getText()
               );

        WynikiBadanProstych wyniki = new WynikiBadanProstych(this);
        try {
            JTable tab = wyniki.getMorfologia();
            tab.getColumnModel().getColumn(0).setPreferredWidth(0);
            WynikiBadanMorfologiaAdmin  = tab;
        } catch (Exception ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }

        listSelectionModel = WynikiBadanMorfologiaAdmin.getSelectionModel();
        listSelectionModel.addListSelectionListener(new slshAdminWynikiMorfologia());
        WynikiBadanMorfologiaAdmin.setSelectionModel(listSelectionModel);
        lista_badaniamoczu_bezwpisu3.setViewportView(WynikiBadanMorfologiaAdmin);

        jLabel182.setText("");
        jLabel183.setText("");
        kr1.setText(""); kr2.setText(""); kr3.setText(""); kr4.setText(""); kr5.setText(""); kr6.setText("");
        kr7.setText(""); kr8.setText(""); kr9.setText(""); kr10.setText(""); kr11.setText(""); kr12.setText("");
        kr13.setText(""); kr14.setText(""); kr15.setText(""); kr16.setText(""); kr17.setText(""); kr18.setText("");
    }//GEN-LAST:event_jButton13ActionPerformed

    private void kr15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr15ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr15ActionPerformed

    private void kr17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kr17ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_kr17ActionPerformed
                                       
 private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                         

            int id_medyka_z_combosa = Integer.parseInt(DoktorCOMBO.getSelectedItem().toString().substring(0, DoktorCOMBO.getSelectedItem().toString().indexOf(":")));
            Doctor d = new Doctor(Users.getDoctorByHisID(id_medyka_z_combosa, this), this);
            calendar_wszyscylekarze = new JCalendar(new JCalendar.Hour(6, 0), new JCalendar.Hour(20, 30),15);
            calendar_wszyscylekarze.update(d.getTerms(), JCalendar.CellType.AVAILABLE);
            calendar_wszyscylekarze.getCalendar().addMouseListener(new PopUpListener_WszyscyLekarze(calendar_wszyscylekarze, new Doctor(Users.getDoctorByHisID(id_medyka_z_combosa, this), this), user));
            calendar_wszyscylekarze.update(d.getHoliday(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate()),
            calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate())), JCalendar.CellType.HOLIDAY);
            calendar_wszyscylekarze.update(d.getPacientsVisit(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate()),
            calendar_wszyscylekarze.getLastDayOfWeek(calendar_wszyscylekarze.getDate())), JCalendar.CellType.VISIT);
            calendar_wszyscylekarze.update(d.getPacientsTodayHomeVisit(), JCalendar.CellType.HOMEVISIT);

                        
       date_wszyscylekarze.setText(df.format(calendar_wszyscylekarze.getFirstDayOfWeek(calendar_wszyscylekarze.getDate())) + " - "
        + df.format(calendar_swojlekarz.getLastDayOfWeek(calendar_wszyscylekarze.getDate())));
        scCalendar_wszyscylekarze.setViewportView(calendar_wszyscylekarze.getCalendar());


}                                     

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
            }
        });
    }
 
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel AccesoriesPanel;
    private javax.swing.JPanel AccesoriesPanel1;
    private javax.swing.JPanel AccesoriesPanel2;
    private javax.swing.JPanel AccesoriesPanel3;
    private javax.swing.JPanel AccesoriesPanel4;
    private javax.swing.JPanel AccessoriesPanel;
    private javax.swing.JPanel AdminPanel;
    private javax.swing.JTabbedPane AdminTabbedPane;
    private javax.swing.JTabbedPane AuthorizationTabbedPane;
    private javax.swing.JButton Badania_wolneterminy_button;
    private javax.swing.JButton Button_badaniertg;
    private javax.swing.JButton Button_badanieusg;
    private javax.swing.JButton Button_swojlekarz;
    private javax.swing.JButton Button_szczepionki;
    private javax.swing.JComboBox COMBO_badania_wolneterminy;
    private javax.swing.JComboBox COMBO_szczepionki;
    private javax.swing.JPanel CheckupPanel;
    private javax.swing.JPanel CheckupPanel2;
    private javax.swing.JPanel ControlPanel;
    private javax.swing.JButton DeleteUser;
    private javax.swing.JComboBox DoktorCOMBO;
    private javax.swing.JPanel DoktorPanel;
    private javax.swing.JPanel MedicPanel;
    private javax.swing.JPanel MedicinePanel;
    private javax.swing.JPanel MedicineProducersPanel;
    private javax.swing.JPanel OfficesPanel;
    private javax.swing.JPanel PacjentPanel;
    private javax.swing.JTabbedPane PacjentPanel_1;
    private javax.swing.JTabbedPane PacjentPanel_3;
    private javax.swing.JTabbedPane PacjentPanel_4;
    private javax.swing.JTabbedPane PacjentPanel_6;
    private javax.swing.JTabbedPane PacjentPanel_8;
    private javax.swing.JTabbedPane Panel_WizytaDomowa;
    private javax.swing.JTabbedPane Panel_WizytaDomowa1;
    private javax.swing.JPanel PrescriptionPanel;
    private javax.swing.JButton Stat10_button;
    private javax.swing.JScrollPane Stat10_wynik;
    private javax.swing.JButton Stat1_button;
    private javax.swing.JScrollPane Stat1_wynik;
    private javax.swing.JButton Stat2_button;
    private javax.swing.JScrollPane Stat2_wynik;
    private javax.swing.JButton Stat3_button;
    private javax.swing.JScrollPane Stat3_wynik;
    private javax.swing.JButton Stat4_button;
    private javax.swing.JScrollPane Stat4_wynik;
    private javax.swing.JTextField Stat5_b1;
    private javax.swing.JTextField Stat5_b2;
    private javax.swing.JButton Stat5_button;
    private javax.swing.JScrollPane Stat5_wynik;
    private javax.swing.JButton Stat6_button;
    private javax.swing.JScrollPane Stat6_wynik;
    private javax.swing.JButton Stat7_button;
    private javax.swing.JScrollPane Stat7_wynik;
    private javax.swing.JButton Stat8_button;
    private javax.swing.JScrollPane Stat8_wynik;
    private javax.swing.JButton Stat9_button;
    private javax.swing.JTextField Stat9_data;
    private javax.swing.JScrollPane Stat9_wynik;
    private javax.swing.JPanel StatsPanel;
    private javax.swing.JPanel UsersPanel;
    private javax.swing.JPanel UsersPanel1;
    private javax.swing.JPanel UsersPanel16;
    private javax.swing.JPanel UsersPanel17;
    private javax.swing.JPanel UsersPanel18;
    private javax.swing.JPanel UsersPanel19;
    private javax.swing.JPanel UsersPanel2;
    private javax.swing.JPanel UsersPanel20;
    private javax.swing.JPanel UsersPanel21;
    private javax.swing.JPanel UsersPanel22;
    private javax.swing.JPanel UsersPanel26;
    private javax.swing.JPanel UsersPanel27;
    private javax.swing.JPanel UsersPanel3;
    private javax.swing.JPanel UsersPanel30;
    private javax.swing.JPanel UsersPanel31;
    private javax.swing.JPanel UsersPanel33;
    private javax.swing.JPanel UsersPanel6;
    private javax.swing.JPanel UsersPanel8;
    private javax.swing.JPanel UsersPanel9;
    private javax.swing.JPanel VaccinesPanel;
    private javax.swing.JButton bAdd;
    private javax.swing.JButton bAddMedicine;
    private javax.swing.JButton bAddMedicine1;
    private javax.swing.JButton bAddOffice;
    private javax.swing.JButton bAddProducers;
    private javax.swing.JButton bAddVaccine;
    private javax.swing.JButton bAllAccess;
    private javax.swing.JButton bAllDrugs;
    private javax.swing.JButton bAllOffices;
    private javax.swing.JButton bAllProducers;
    private javax.swing.JButton bAllUsers;
    private javax.swing.JButton bAllVaccine;
    private javax.swing.JButton bDeleteAccess;
    private javax.swing.JButton bDeleteMedicine;
    private javax.swing.JButton bDeleteOffice;
    private javax.swing.JButton bDeleteProducers;
    private javax.swing.JButton bDeleteVaccine;
    private javax.swing.JButton bEdit;
    private javax.swing.JButton bLogout;
    private javax.swing.JButton bSearch;
    private javax.swing.JButton bSearchAccess;
    private javax.swing.JButton bSearchByDocRecipe;
    private javax.swing.JButton bSearchByPersonRecipe;
    private javax.swing.JButton bSearchDrug;
    private javax.swing.JButton bSearchOffice;
    private javax.swing.JButton bSearchProducers;
    private javax.swing.JButton bSearchVaccine;
    private javax.swing.JCheckBox cIsActiveAdd;
    private javax.swing.JCheckBox cIsActiveSearch;
    private javax.swing.JComboBox cbAuth;
    private javax.swing.JComboBox cbAuth1;
    private javax.swing.JComboBox cbDocPat;
    private javax.swing.JComboBox cbDoctorsRecipe;
    private javax.swing.JComboBox cbProducent;
    private javax.swing.JComboBox cbProducent1;
    private javax.swing.JComboBox cbRef;
    private javax.swing.JComboBox cbRef1;
    private javax.swing.JComboBox cbSpec;
    private javax.swing.JComboBox cbSpecRecipe;
    private javax.swing.JLabel data_badania_wolneterminy;
    private javax.swing.JLabel date;
    private javax.swing.JLabel date3;
    private javax.swing.JLabel date_badaniertg;
    private javax.swing.JLabel date_badaniertg2;
    private javax.swing.JLabel date_badanieusg;
    private javax.swing.JLabel date_badanieusg2;
    private javax.swing.JLabel date_badanieusg3;
    private javax.swing.JLabel date_badanieusg4;
    private javax.swing.JLabel date_badanieusg6;
    private javax.swing.JLabel date_swojlekarz;
    private javax.swing.JLabel date_szczepionki;
    private javax.swing.JLabel date_wizytydomowe;
    private javax.swing.JLabel date_wszyscylekarze;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel100;
    private javax.swing.JLabel jLabel101;
    private javax.swing.JLabel jLabel102;
    private javax.swing.JLabel jLabel103;
    private javax.swing.JLabel jLabel104;
    private javax.swing.JLabel jLabel105;
    private javax.swing.JLabel jLabel106;
    private javax.swing.JLabel jLabel107;
    private javax.swing.JLabel jLabel108;
    private javax.swing.JLabel jLabel109;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel110;
    private javax.swing.JLabel jLabel111;
    private javax.swing.JLabel jLabel112;
    private javax.swing.JLabel jLabel113;
    private javax.swing.JLabel jLabel114;
    private javax.swing.JLabel jLabel115;
    private javax.swing.JLabel jLabel116;
    private javax.swing.JLabel jLabel117;
    private javax.swing.JLabel jLabel118;
    private javax.swing.JLabel jLabel119;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel120;
    private javax.swing.JLabel jLabel121;
    private javax.swing.JLabel jLabel122;
    private javax.swing.JLabel jLabel123;
    private javax.swing.JLabel jLabel124;
    private javax.swing.JLabel jLabel125;
    private javax.swing.JLabel jLabel126;
    private javax.swing.JLabel jLabel127;
    private javax.swing.JLabel jLabel128;
    private javax.swing.JLabel jLabel129;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel130;
    private javax.swing.JLabel jLabel131;
    private javax.swing.JLabel jLabel132;
    private javax.swing.JLabel jLabel133;
    private javax.swing.JLabel jLabel134;
    private javax.swing.JLabel jLabel135;
    private javax.swing.JLabel jLabel136;
    private javax.swing.JLabel jLabel137;
    private javax.swing.JLabel jLabel138;
    private javax.swing.JLabel jLabel139;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel140;
    private javax.swing.JLabel jLabel141;
    private javax.swing.JLabel jLabel142;
    private javax.swing.JLabel jLabel143;
    private javax.swing.JLabel jLabel144;
    private javax.swing.JLabel jLabel145;
    private javax.swing.JLabel jLabel146;
    private javax.swing.JLabel jLabel147;
    private javax.swing.JLabel jLabel148;
    private javax.swing.JLabel jLabel149;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel150;
    private javax.swing.JLabel jLabel151;
    private javax.swing.JLabel jLabel152;
    private javax.swing.JLabel jLabel153;
    private javax.swing.JLabel jLabel154;
    private javax.swing.JLabel jLabel155;
    private javax.swing.JLabel jLabel156;
    private javax.swing.JLabel jLabel157;
    private javax.swing.JLabel jLabel158;
    private javax.swing.JLabel jLabel159;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel160;
    private javax.swing.JLabel jLabel161;
    private javax.swing.JLabel jLabel162;
    private javax.swing.JLabel jLabel163;
    private javax.swing.JLabel jLabel164;
    private javax.swing.JLabel jLabel165;
    private javax.swing.JLabel jLabel166;
    private javax.swing.JLabel jLabel167;
    private javax.swing.JLabel jLabel168;
    private javax.swing.JLabel jLabel169;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel170;
    private javax.swing.JLabel jLabel171;
    private javax.swing.JLabel jLabel172;
    private javax.swing.JLabel jLabel173;
    private javax.swing.JLabel jLabel174;
    private javax.swing.JLabel jLabel175;
    private javax.swing.JLabel jLabel176;
    private javax.swing.JLabel jLabel177;
    private javax.swing.JLabel jLabel178;
    private javax.swing.JLabel jLabel179;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel180;
    private javax.swing.JLabel jLabel181;
    private javax.swing.JLabel jLabel182;
    private javax.swing.JLabel jLabel183;
    private javax.swing.JLabel jLabel188;
    private javax.swing.JLabel jLabel189;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel190;
    private javax.swing.JLabel jLabel196;
    private javax.swing.JLabel jLabel197;
    private javax.swing.JLabel jLabel198;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel208;
    private javax.swing.JLabel jLabel209;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel210;
    private javax.swing.JLabel jLabel211;
    private javax.swing.JLabel jLabel212;
    private javax.swing.JLabel jLabel213;
    private javax.swing.JLabel jLabel214;
    private javax.swing.JLabel jLabel215;
    private javax.swing.JLabel jLabel216;
    private javax.swing.JLabel jLabel217;
    private javax.swing.JLabel jLabel218;
    private javax.swing.JLabel jLabel219;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel220;
    private javax.swing.JLabel jLabel221;
    private javax.swing.JLabel jLabel222;
    private javax.swing.JLabel jLabel223;
    private javax.swing.JLabel jLabel224;
    private javax.swing.JLabel jLabel225;
    private javax.swing.JLabel jLabel226;
    private javax.swing.JLabel jLabel227;
    private javax.swing.JLabel jLabel228;
    private javax.swing.JLabel jLabel229;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel230;
    private javax.swing.JLabel jLabel231;
    private javax.swing.JLabel jLabel232;
    private javax.swing.JLabel jLabel233;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel242;
    private javax.swing.JLabel jLabel243;
    private javax.swing.JLabel jLabel244;
    private javax.swing.JLabel jLabel245;
    private javax.swing.JLabel jLabel246;
    private javax.swing.JLabel jLabel247;
    private javax.swing.JLabel jLabel248;
    private javax.swing.JLabel jLabel249;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel250;
    private javax.swing.JLabel jLabel251;
    private javax.swing.JLabel jLabel252;
    private javax.swing.JLabel jLabel253;
    private javax.swing.JLabel jLabel254;
    private javax.swing.JLabel jLabel255;
    private javax.swing.JLabel jLabel256;
    private javax.swing.JLabel jLabel257;
    private javax.swing.JLabel jLabel258;
    private javax.swing.JLabel jLabel259;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabel87;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel89;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel90;
    private javax.swing.JLabel jLabel91;
    private javax.swing.JLabel jLabel92;
    private javax.swing.JLabel jLabel93;
    private javax.swing.JLabel jLabel94;
    private javax.swing.JLabel jLabel95;
    private javax.swing.JLabel jLabel96;
    private javax.swing.JLabel jLabel97;
    private javax.swing.JLabel jLabel98;
    private javax.swing.JLabel jLabel99;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField10;
    private javax.swing.JTextField jTextField100;
    private javax.swing.JTextField jTextField102;
    private javax.swing.JTextField jTextField103;
    private javax.swing.JTextField jTextField105;
    private javax.swing.JTextField jTextField106;
    private javax.swing.JTextField jTextField108;
    private javax.swing.JTextField jTextField109;
    private javax.swing.JTextField jTextField111;
    private javax.swing.JTextField jTextField112;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField13;
    private javax.swing.JTextField jTextField15;
    private javax.swing.JTextField jTextField16;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField21;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField25;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField30;
    private javax.swing.JTextField jTextField31;
    private javax.swing.JTextField jTextField33;
    private javax.swing.JTextField jTextField34;
    private javax.swing.JTextField jTextField36;
    private javax.swing.JTextField jTextField37;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField40;
    private javax.swing.JTextField jTextField41;
    private javax.swing.JTextField jTextField43;
    private javax.swing.JTextField jTextField44;
    private javax.swing.JTextField jTextField45;
    private javax.swing.JTextField jTextField46;
    private javax.swing.JTextField jTextField48;
    private javax.swing.JTextField jTextField49;
    private javax.swing.JTextField jTextField51;
    private javax.swing.JTextField jTextField52;
    private javax.swing.JTextField jTextField54;
    private javax.swing.JTextField jTextField55;
    private javax.swing.JTextField jTextField57;
    private javax.swing.JTextField jTextField58;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField60;
    private javax.swing.JTextField jTextField61;
    private javax.swing.JTextField jTextField63;
    private javax.swing.JTextField jTextField64;
    private javax.swing.JTextField jTextField66;
    private javax.swing.JTextField jTextField67;
    private javax.swing.JTextField jTextField69;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField70;
    private javax.swing.JTextField jTextField72;
    private javax.swing.JTextField jTextField73;
    private javax.swing.JTextField jTextField75;
    private javax.swing.JTextField jTextField76;
    private javax.swing.JTextField jTextField78;
    private javax.swing.JTextField jTextField79;
    private javax.swing.JTextField jTextField81;
    private javax.swing.JTextField jTextField82;
    private javax.swing.JTextField jTextField84;
    private javax.swing.JTextField jTextField85;
    private javax.swing.JTextField jTextField87;
    private javax.swing.JTextField jTextField88;
    private javax.swing.JTextField jTextField9;
    private javax.swing.JTextField jTextField90;
    private javax.swing.JTextField jTextField91;
    private javax.swing.JTextField jTextField93;
    private javax.swing.JTextField jTextField94;
    private javax.swing.JTextField jTextField96;
    private javax.swing.JTextField jTextField97;
    private javax.swing.JTextField jTextField99;
    private javax.swing.JTextField kr1;
    private javax.swing.JTextField kr10;
    private javax.swing.JTextField kr11;
    private javax.swing.JTextField kr12;
    private javax.swing.JTextField kr13;
    private javax.swing.JTextField kr14;
    private javax.swing.JTextField kr15;
    private javax.swing.JTextField kr16;
    private javax.swing.JTextField kr17;
    private javax.swing.JTextField kr18;
    private javax.swing.JTextField kr2;
    private javax.swing.JTextField kr3;
    private javax.swing.JTextField kr4;
    private javax.swing.JTextField kr5;
    private javax.swing.JTextField kr6;
    private javax.swing.JTextField kr7;
    private javax.swing.JTextField kr8;
    private javax.swing.JTextField kr9;
    private javax.swing.JLabel lAddTitle;
    private javax.swing.JLabel lAdress;
    private javax.swing.JLabel lAuthorization;
    private javax.swing.JLabel lAuthotizationAdd;
    private javax.swing.JLabel lDoc;
    private javax.swing.JLabel lEMail;
    private javax.swing.JLabel lEMailAdd;
    private javax.swing.JLabel lFirstName;
    private javax.swing.JLabel lFirstNameAdd;
    private javax.swing.JLabel lLastName;
    private javax.swing.JLabel lLastNameAdd;
    private javax.swing.JLabel lLoginAdd;
    private javax.swing.JLabel lLoginName;
    private javax.swing.JLabel lNrLic;
    private javax.swing.JLabel lNrU;
    private javax.swing.JLabel lPasswordAdd;
    private javax.swing.JLabel lPesel;
    private javax.swing.JLabel lSearchTitle;
    private javax.swing.JLabel lSpec;
    private javax.swing.JLabel lTitle;
    private javax.swing.JLabel lWhoIsLogin;
    private javax.swing.JTextField li1;
    private javax.swing.JTextField li2;
    private javax.swing.JTextField li3;
    private javax.swing.JTextField li4;
    private javax.swing.JTextField li5;
    private javax.swing.JTextField lipi_ob1;
    private javax.swing.JTextField lipi_ob2;
    private javax.swing.JTextField lipi_ob3;
    private javax.swing.JTextField lipi_ob4;
    private javax.swing.JTextField lipi_ob5;
    private javax.swing.JScrollPane lista_badaniamoczu_bezwpisu;
    private javax.swing.JScrollPane lista_badaniamoczu_bezwpisu1;
    private javax.swing.JScrollPane lista_badaniamoczu_bezwpisu3;
    private javax.swing.JTextField mo1;
    private javax.swing.JTextField mo10;
    private javax.swing.JTextField mo11;
    private javax.swing.JTextField mo12;
    private javax.swing.JTextField mo13;
    private javax.swing.JTextField mo14;
    private javax.swing.JTextField mo2;
    private javax.swing.JTextField mo3;
    private javax.swing.JTextField mo4;
    private javax.swing.JTextField mo5;
    private javax.swing.JTextField mo6;
    private javax.swing.JTextField mo7;
    private javax.swing.JTextField mo8;
    private javax.swing.JTextField mo9;
    private javax.swing.JTextField morfo_ob1;
    private javax.swing.JTextField morfo_ob10;
    private javax.swing.JTextField morfo_ob11;
    private javax.swing.JTextField morfo_ob12;
    private javax.swing.JTextField morfo_ob13;
    private javax.swing.JTextField morfo_ob14;
    private javax.swing.JTextField morfo_ob15;
    private javax.swing.JTextField morfo_ob16;
    private javax.swing.JTextField morfo_ob17;
    private javax.swing.JTextField morfo_ob18;
    private javax.swing.JTextField morfo_ob2;
    private javax.swing.JTextField morfo_ob3;
    private javax.swing.JTextField morfo_ob4;
    private javax.swing.JTextField morfo_ob5;
    private javax.swing.JTextField morfo_ob6;
    private javax.swing.JTextField morfo_ob7;
    private javax.swing.JTextField morfo_ob8;
    private javax.swing.JTextField morfo_ob9;
    private javax.swing.JButton next_badania_wolneterminy;
    private javax.swing.JButton next_badaniertg;
    private javax.swing.JButton next_badanieusg;
    private javax.swing.JButton next_swojlekarz;
    private javax.swing.JButton next_szczepionki;
    private javax.swing.JButton next_wszyscylekarze;
    private javax.swing.JButton next_wszyscylekarze2;
    private javax.swing.JTextField ob1;
    private javax.swing.JTextField ob10;
    private javax.swing.JTextField ob11;
    private javax.swing.JTextField ob12;
    private javax.swing.JTextField ob13;
    private javax.swing.JTextField ob14;
    private javax.swing.JTextField ob2;
    private javax.swing.JTextField ob3;
    private javax.swing.JTextField ob4;
    private javax.swing.JTextField ob5;
    private javax.swing.JTextField ob6;
    private javax.swing.JTextField ob7;
    private javax.swing.JTextField ob8;
    private javax.swing.JTextField ob9;
    private javax.swing.JButton otworz_kalendarz_rejestracji;
    private javax.swing.JPanel pCalendar;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj10;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj4;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj5;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj6;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj7;
    private javax.swing.JButton pacjent_historia_wizyt_aktualizuj8;
    private javax.swing.JScrollPane pacjent_historia_wizyt_lista;
    private javax.swing.JScrollPane pacjent_historia_wizyt_recepty;
    private javax.swing.JTextArea pacjent_historia_wizyt_recepty_szczegoly;
    private javax.swing.JTextArea pacjent_historia_wizyty_rozpoznanie;
    private javax.swing.JTextArea pacjent_historia_wizyty_zalecenia;
    private javax.swing.JScrollPane pacjent_nadchodzace_terminy_1;
    private javax.swing.JScrollPane pacjent_nadchodzace_terminy_2;
    private javax.swing.JScrollPane pacjent_nadchodzace_terminy_3;
    private javax.swing.JScrollPane pacjent_nadchodzace_terminy_4;
    private javax.swing.JScrollPane pacjent_nadchodzace_terminy_5;
    private javax.swing.JScrollPane pacjent_nadchodzace_terminy_6;
    private javax.swing.JButton pacjent_nadchodzace_terminy_aktualizuj;
    private javax.swing.JScrollPane pacjent_wyniki_badan_moczu;
    private javax.swing.JScrollPane pacjent_wyniki_lipidogram;
    private javax.swing.JScrollPane pacjent_wyniki_morfologia;
    private javax.swing.JLabel pomoc_id_pacjenta;
    private javax.swing.JButton prev_badania_wolneterminy;
    private javax.swing.JButton prev_badaniertg;
    private javax.swing.JButton prev_badanieusg;
    private javax.swing.JButton prev_swojlekarz;
    private javax.swing.JButton prev_szczepionki;
    private javax.swing.JButton prev_wszyscylekarze;
    private javax.swing.JButton prev_wszyscylekarze2;
    private javax.swing.JComboBox rejestracja_doctor_list;
    private javax.swing.JRadioButton rejestracja_radio1;
    private javax.swing.JRadioButton rejestracja_radio2;
    private javax.swing.JButton rejestracja_wizyta_b1;
    private javax.swing.JButton rejestracja_wizyta_b2;
    private javax.swing.JButton rejestracja_wizyta_b3;
    private javax.swing.JButton rejestracja_wizyta_b4;
    private javax.swing.JButton rejestracja_wizyta_b5;
    private javax.swing.JButton rejestracja_wizyta_b6;
    private javax.swing.JButton rejestracja_wizyta_ball;
    private javax.swing.JTextField rejestracja_wizyta_nazwisko;
    private javax.swing.JTextField rejestracja_wizyta_nazwisko1;
    private javax.swing.JScrollPane rejestracja_wizyta_pacjent_list;
    private javax.swing.JScrollPane rejestracja_wizyta_pacjent_list1;
    private javax.swing.JScrollPane rejestracja_wizyta_pacjent_list2;
    private javax.swing.JTextField rejestracja_wizyta_pesel;
    private javax.swing.JTextField rejestracja_wizyta_pesel1;
    private javax.swing.JTextField rejestracja_wizyta_ubezp;
    private javax.swing.JTextField rejestracja_wizyta_ubezp1;
    private javax.swing.JScrollPane scCalendar;
    private javax.swing.JScrollPane scCalendar_badania_wolneterminy;
    private javax.swing.JScrollPane scCalendar_badaniertg;
    private javax.swing.JScrollPane scCalendar_badanieusg;
    private javax.swing.JScrollPane scCalendar_swojlekarz;
    private javax.swing.JScrollPane scCalendar_szczepionki;
    private javax.swing.JScrollPane scCalendar_wizytydomowe;
    private javax.swing.JScrollPane scCalendar_wszyscylekarze;
    private javax.swing.JScrollPane scPacjenci;
    private javax.swing.JScrollPane scTerms;
    private javax.swing.JScrollPane spAccessories;
    private javax.swing.JScrollPane spDrugsProducers;
    private javax.swing.JScrollPane spOffice;
    private javax.swing.JScrollPane spProducers;
    private javax.swing.JScrollPane spRecipes;
    private javax.swing.JScrollPane spUsersTable;
    private javax.swing.JScrollPane spVaccine;
    private javax.swing.JTextField tAddAccesPrzeznaczenie;
    private javax.swing.JTextField tAddAccessCount;
    private javax.swing.JTextField tAddAccessName;
    private javax.swing.JTextField tAddMedicineName;
    private javax.swing.JTextField tAddMedicinePrice;
    private javax.swing.JTextField tAddOfficeDesc;
    private javax.swing.JTextField tAddOfficeName;
    private javax.swing.JTextField tAddOfficeNumber;
    private javax.swing.JTextField tAddProducersAdress;
    private javax.swing.JTextField tAddProducersName;
    private javax.swing.JTextField tAddProducersTelephone;
    private javax.swing.JTextField tAddVaccineDesc;
    private javax.swing.JTextField tAddVaccineName;
    private javax.swing.JTextField tAddVaccinePrice;
    private javax.swing.JTextField tAdress;
    private javax.swing.JTextField tCountFrom;
    private javax.swing.JTextField tCountTo;
    private javax.swing.JTextField tEMailAdd;
    private javax.swing.JTextField tEmailSearch;
    private javax.swing.JTextField tFirstNameAdd;
    private javax.swing.JTextField tFirstNameSearch;
    private javax.swing.JTextField tLastNameAdd;
    private javax.swing.JTextField tLastNameSearch;
    private javax.swing.JTextField tLoginAdd;
    private javax.swing.JTextField tName;
    private javax.swing.JTextField tName1;
    private javax.swing.JTextField tName2;
    private javax.swing.JTextField tNrLic;
    private javax.swing.JTextField tNrU;
    private javax.swing.JTextField tNumberFrom;
    private javax.swing.JTextField tNumberTo;
    private javax.swing.JTextField tPasswordAdd;
    private javax.swing.JTextField tPesel;
    private javax.swing.JTextField tPriceFrom;
    private javax.swing.JTextField tPriceTo;
    private javax.swing.JTextField tProducersAdress;
    private javax.swing.JTextField tProducersName;
    private javax.swing.JTextField tProducersTelephone;
    private javax.swing.JTextField tRecipesName;
    private javax.swing.JTextField tRecipesPesel;
    private javax.swing.JTextField tSearchAccessPrzeznaczenie;
    private javax.swing.JTextField tSearchOfficesDesc;
    private javax.swing.JTextField tSearchVaccineDesc;
    private javax.swing.JTextField tVaccineName;
    private javax.swing.JTextField tVaccinePriceFrom;
    private javax.swing.JTextField tVaccinePriceTo;
    // End of variables declaration//GEN-END:variables

    /*Shared List Selection Handler
     zwraca obiekt bedacy Listnerem dla klikniecia w wiersz tabeli
     */
        class slshAdminWynikiMorfologia implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            // spowodujemy ze przyciski     

                            jLabel181.setVisible(false);
                            jLabel181.setText(WynikiBadanMorfologiaAdmin.getModel().getValueAt(i, 0).toString());
                            jLabel182.setText(WynikiBadanMorfologiaAdmin.getModel().getValueAt(i, 2).toString());
                            jLabel183.setText(WynikiBadanMorfologiaAdmin.getModel().getValueAt(i, 1).toString());
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
        
    class slshAdminWynikiLipidogram implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            // spowodujemy ze przyciski     

                            jLabel180.setVisible(false);
                            jLabel180.setText(WynikiBadanLipidogramAdmin.getModel().getValueAt(i, 0).toString());
                            jLabel164.setText(WynikiBadanLipidogramAdmin.getModel().getValueAt(i, 2).toString());
                            jLabel179.setText(WynikiBadanLipidogramAdmin.getModel().getValueAt(i, 1).toString());
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
    
    
  class slshAdminWynikiBadanieMoczu implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            // spowodujemy ze przyciski     

                            jLabel232.setVisible(false);
                            jLabel232.setText(WynikiBadanMoczAdmin.getModel().getValueAt(i, 0).toString());
                            jLabel230.setText(WynikiBadanMoczAdmin.getModel().getValueAt(i, 2).toString());
                            jLabel231.setText(WynikiBadanMoczAdmin.getModel().getValueAt(i, 1).toString());
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
        class slshRejestracjaRecznaWizytyModel2 implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            // spowodujemy ze przyciski     
                            jButton7.setEnabled(true);

                            jLabel163.setVisible(false);
                            jLabel163.setText(RejestracjaRecznaWizytyModel2.getModel().getValueAt(i, 0).toString());
                            
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
        
class slshRejestracjaRecznaWizytyModel1 implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            try {
                                jLabel162.setVisible(false);
                                jButton7.setEnabled(false);
                                jLabel162.setText(RejestracjaRecznaWizytyModel1.getModel().getValueAt(i, 0).toString());
                                jLabel161.setText(RejestracjaRecznaWizytyModel1.getModel().getValueAt(i, 1).toString() + " " + RejestracjaRecznaWizytyModel1.getModel().getValueAt(i, 2).toString());
                                 RejestracjaWizyty2 = NadchodzaceTerminy.get1(Integer.parseInt(RejestracjaRecznaWizytyModel1.getModel().getValueAt(i, 0).toString()));
                                RejestracjaRecznaWizytyModel2 = RejestracjaWizyty2;
                            } catch (Exception ex) {
                                Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                            }
                            listSelectionModel = RejestracjaRecznaWizytyModel2.getSelectionModel();
                            listSelectionModel.addListSelectionListener(new slshRejestracjaRecznaWizytyModel2());
                            RejestracjaRecznaWizytyModel2.setSelectionModel(listSelectionModel);
                            rejestracja_wizyta_pacjent_list2.setViewportView(RejestracjaWizyty2);
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
    
    
        class slshRejestracjaRecznaWizytyModel implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                                rejestracja_radio1.setEnabled(true);
                                rejestracja_radio2.setEnabled(true);
                                otworz_kalendarz_rejestracji.setEnabled(true);
                                jLabel156.setEnabled(true);
                                pomoc_id_pacjenta.setText(RejestracjaRecznaWizytyModel.getModel().getValueAt(i, 0).toString());

                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
        
    class slshWynikiBadanLipidogram implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            ResultSet rs = WynikiBadanProstych.getWynikiLipidogram(Integer.parseInt(WynikiBadanLipidogram.getModel().getValueAt(i, 0).toString()));
                            rs.first();
                            lipi_ob1.setText(rs.getString(1));
                            lipi_ob2.setText(rs.getString(2));
                            lipi_ob3.setText(rs.getString(3));
                            lipi_ob4.setText(rs.getString(4));
                            lipi_ob5.setText(rs.getString(5));
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
    
    
    class slshWynikiBadanMocz implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            ResultSet rs = WynikiBadanProstych.getWynikiMocz(Integer.parseInt(WynikiBadanMocz.getModel().getValueAt(i, 0).toString()));
                            rs.first();
                            ob1.setText(rs.getString(1));
                            ob2.setText(rs.getString(2));
                            ob3.setText(rs.getString(3));
                            ob4.setText(rs.getString(4));
                            ob5.setText(rs.getString(5));
                            ob6.setText(rs.getString(6));
                            ob7.setText(rs.getString(7));
                            ob8.setText(rs.getString(8));
                            ob9.setText(rs.getString(9));
                            ob10.setText(rs.getString(10));
                            ob11.setText(rs.getString(11));
                            ob12.setText(rs.getString(12));
                            ob13.setText(rs.getString(13));
                            ob14.setText(rs.getString(14));
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
       
    class slshWynikiBadanMorfologia implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            ResultSet rs = WynikiBadanProstych.getWynikiMorfologia(Integer.parseInt(WynikiBadanMorfologia.getModel().getValueAt(i, 0).toString()));
                            rs.first();
                            morfo_ob1.setText(rs.getString(1));
                            morfo_ob2.setText(rs.getString(2));
                            morfo_ob3.setText(rs.getString(3));
                            morfo_ob4.setText(rs.getString(4));
                            morfo_ob5.setText(rs.getString(5));
                            morfo_ob6.setText(rs.getString(6));
                            morfo_ob7.setText(rs.getString(7));
                            morfo_ob8.setText(rs.getString(8));
                            morfo_ob9.setText(rs.getString(9));
                            morfo_ob10.setText(rs.getString(10));
                            morfo_ob11.setText(rs.getString(11));
                            morfo_ob12.setText(rs.getString(12));
                            morfo_ob13.setText(rs.getString(13));
                            morfo_ob14.setText(rs.getString(14));
                            morfo_ob15.setText(rs.getString(15));
                            morfo_ob16.setText(rs.getString(16));
                            morfo_ob17.setText(rs.getString(17));
                            morfo_ob18.setText(rs.getString(18));
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
    
    class slshRecipesListOnPersonHistory implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            pacjent_historia_wizyt_recepty_szczegoly.setText(Recipes.getOpisById(Integer.parseInt(RecipesListOnPersonHistory.getModel().getValueAt(i, 0).toString())));

                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
    
   class slshVisitTableOnPersonHistory implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(minIndex)) {
                        try {
                            pacjent_historia_wizyty_rozpoznanie.setText(Pacjenci.getRozpoznanie(Integer.parseInt(VisitTableOnPersonHistory.getModel().getValueAt(i, 0).toString())));
                            pacjent_historia_wizyty_zalecenia.setText(Pacjenci.getZalecenia(Integer.parseInt(VisitTableOnPersonHistory.getModel().getValueAt(i, 0).toString())));
                           
                            try {
                                    JTable tab = Recipes.getRecipesListByWizytaID(Integer.parseInt(VisitTableOnPersonHistory.getModel().getValueAt(i, 0).toString()));
                                    tab.getColumnModel().getColumn(0).setPreferredWidth(0);
                                    RecipesListOnPersonHistory  = tab;
                                } catch (Exception ex) {
                                    Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                                }

                                listSelectionModel = RecipesListOnPersonHistory.getSelectionModel();
                                listSelectionModel.addListSelectionListener(new slshRecipesListOnPersonHistory());
                                RecipesListOnPersonHistory.setSelectionModel(listSelectionModel);
                                pacjent_historia_wizyt_recepty.setViewportView(RecipesListOnPersonHistory);
        
                        } catch (Exception ex) {
                            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
                        }
                   }
                }
            }
        }
    }
        
    class slshUserTableOnAdminUser implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int minIndex = lsm.getMinSelectionIndex();
                int maxIndex = lsm.getMaxSelectionIndex();
                for (int i = minIndex; i <= maxIndex; i++) {
                    if (lsm.isSelectedIndex(i)) {
                        //w i jest zaznaczony wiersz
                        tFirstNameSearch.setText(UserTableOnAdminUser.getModel().getValueAt(i, 0).toString());
                        tLastNameSearch.setText(UserTableOnAdminUser.getModel().getValueAt(i, 1).toString());
                        cbAuth1.setSelectedItem(UserTableOnAdminUser.getModel().getValueAt(i, 2).toString());
                        tEmailSearch.setText(UserTableOnAdminUser.getModel().getValueAt(i, 3).toString());
                    }
                }
            }
        }
    }

    class slshMedicinesTableOnAdminMedicines implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int maxIndex = lsm.getMaxSelectionIndex();
                String[] tmp = new String[5];
                for (int i = 0; i < 5; i++) {
                    tmp[i] = MedicinesTableOnAdminMedicines.getModel().getValueAt(maxIndex, i).toString();
                }
                Drugs.setSelectedRow(tmp);
            }
        }
    }

    class slshAccessoriesTableOnAdminAccessories implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int maxIndex = lsm.getMaxSelectionIndex();
                String[] tmp = new String[4];
                for (int i = 0; i < 4; i++) {
                    tmp[i] = AccessoriesTableOnAdminAccessories.getModel().getValueAt(maxIndex, i).toString();
                }
                Accessories.setSelectedRow(tmp);
            }
        }
    }

    class slshOfficesTableOnAdminOffices implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int maxIndex = lsm.getMaxSelectionIndex();
                String[] tmp = new String[3];
                for (int i = 0; i < 3; i++) {
                    tmp[i] = OfficesTableOnAdminOffices.getModel().getValueAt(maxIndex, i).toString();
                }
                Offices.setSelectedRow(tmp);
            }
        }
    }

    class slshVaccineTableOnAdminVaccine implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int maxIndex = lsm.getMaxSelectionIndex();
                String[] tmp = new String[4];
                for (int i = 0; i < 4; i++) {
                    tmp[i] = VaccineTableOnAdminVaccine.getModel().getValueAt(maxIndex, i).toString();
                }
                Vaccine.setSelectedRow(tmp);
            }
        }
    }

    class slshProducersTableOnAdminProducers implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int maxIndex = lsm.getMaxSelectionIndex();
                String[] tmp = new String[4];
                for (int i = 0; i < 4; i++) {
                    tmp[i] = ProducersTableOnAdminProducers.getModel().getValueAt(maxIndex, i).toString();
                }
                Producers.setSelectedRow(tmp);
            }
        }
    }

    class slshRecipesTableOnAdminRecipes implements ListSelectionListener {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();

            if (!lsm.isSelectionEmpty()) {
                // Find out which indexes are selected.
                int maxIndex = lsm.getMaxSelectionIndex();
                String[] tmp = new String[3];
                for (int i = 0; i < 3; i++) {
                    tmp[i] = RecipesTableOnAdminRecipes.getModel().getValueAt(maxIndex, i).toString();
                }
                Recipes.setSelectedRow(tmp);
            }
        }
    }
}
